Francois Tur
4c6c9d4b27
Move cache Keys to 64bit for a better dispersion and lower collision frequency ( #2077 )
...
* - change Key for cache to 64bits.
* - change Key for cache to 64bits.
2018-08-31 14:26:43 -07:00
Chris O'Haver
684c35d56b
lower cache min limit ( #2065 )
2018-08-29 07:13:18 +01:00
Miek Gieben
5aa0d55e72
plugin/pkg/cache: smarter locking ( #1164 )
...
Make the locking slightly smarter in Evict and add benchmark function.
Seems a bit faster (there was some variance while performing these
benchmarks)
Master:
BenchmarkCache-2 1000000 2317 ns/op 0 B/op 0 allocs/op
BenchmarkCache-2 1000000 2032 ns/op 0 B/op 0 allocs/op
This branch:
BenchmarkCache-2 1000000 1806 ns/op 0 B/op 0 allocs/op
BenchmarkCache-2 1000000 1809 ns/op 0 B/op 0 allocs/op
2017-10-23 17:24:48 +01:00
Miek Gieben
d8714e64e4
Remove the word middleware ( #1067 )
...
* Rename middleware to plugin
first pass; mostly used 'sed', few spots where I manually changed
text.
This still builds a coredns binary.
* fmt error
* Rename AddMiddleware to AddPlugin
* Readd AddMiddleware to remain backwards compat
2017-09-14 09:36:06 +01:00