Miek Gieben
e6d02a3fd2
cache: some optimizations ( #2247 )
...
Remove some optimization and lowercasing of the qname (in the end
miekg/dns should provide a fast and OK function for it).
* remove the make([]byte, 2) allocation in the key()
* use already lowercased qname in hash key calculation.
% benchcmp old.txt new.txt
benchmark old ns/op new ns/op delta
BenchmarkCacheResponse-4 9599 8735 -9.00%
Signed-off-by: Miek Gieben <miek@miek.nl >
2018-10-29 08:13:39 -07:00
..
2018-10-21 13:59:37 +00:00
2018-10-18 21:42:53 +00:00
2018-07-19 16:23:06 +01:00
2018-10-29 08:13:39 -07:00
2018-07-19 16:23:06 +01:00
2018-07-19 16:23:06 +01:00
2018-05-24 14:30:01 +01:00
2018-10-21 13:59:37 +00:00
2018-09-19 08:16:04 +01:00
2018-10-23 09:55:40 -07:00
2018-10-27 15:37:09 +01:00
2018-09-22 15:12:02 +01:00
2018-10-15 12:43:03 -04:00
2018-10-23 20:19:36 +01:00
2018-10-09 20:50:30 +01:00
2018-09-19 10:36:41 -04:00
2018-10-21 13:59:37 +00:00
2018-10-22 09:30:08 -04:00
2018-07-19 16:23:06 +01:00
2018-07-19 16:23:06 +01:00
2018-10-22 18:30:42 +01:00
2018-08-14 08:55:55 -07:00
2018-08-21 11:52:25 -04:00
2018-07-19 16:23:06 +01:00
2018-10-19 14:10:08 -04:00
2018-07-19 16:23:06 +01:00
2018-09-19 02:11:24 -07:00
2018-08-14 08:55:55 -07:00
2018-10-23 16:59:59 -04:00
2018-08-14 08:55:55 -07:00
2018-10-10 17:55:54 +00:00
2018-07-28 10:32:13 +01:00
2018-09-19 02:11:24 -07:00
2018-07-07 08:30:57 +01:00
2018-07-19 16:23:06 +01:00
2018-10-05 20:13:16 +00:00
2018-07-20 19:45:17 +01:00
2018-09-22 15:12:02 +01:00
2018-04-22 08:34:35 +01:00
2018-07-19 16:23:06 +01:00
2017-10-24 10:16:03 +01:00
2018-09-19 08:16:04 +01:00
2018-04-22 08:34:35 +01:00