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
..
2017-10-10 09:39:35 +02:00
2017-10-20 09:47:43 +01:00
2017-09-15 09:56:05 +01:00
2017-10-13 17:22:08 +02:00
2017-10-20 09:47:43 +01:00
2017-10-20 09:47:43 +01:00
2017-10-20 09:22:02 +01:00
2017-10-10 09:39:35 +02:00
2017-09-21 15:15:47 +01:00
2017-09-21 15:15:47 +01:00
2017-10-10 09:39:35 +02:00
2017-10-20 22:53:17 +01:00
2017-09-29 22:28:13 +01:00
2017-10-20 09:47:43 +01:00
2017-10-10 09:39:35 +02:00
2017-10-20 22:53:17 +01:00
2017-10-10 09:39:35 +02:00
2017-10-10 09:39:35 +02:00
2017-10-20 09:47:43 +01:00
2017-10-23 17:24:48 +01:00
2017-10-10 09:39:35 +02:00
2017-10-15 19:38:39 +02:00
2017-10-20 09:47:43 +01:00
2017-10-10 09:39:35 +02:00
2017-10-20 09:47:43 +01:00
2017-09-14 09:36:06 +01:00
2017-09-15 23:34:02 +01:00
2017-09-14 09:36:06 +01:00
2017-09-15 22:27:55 +01:00
2017-10-20 09:47:43 +01:00
2017-09-14 09:36:06 +01:00
2017-09-14 09:36:06 +01:00
2017-09-14 09:36:06 +01:00
2017-09-14 09:36:06 +01:00
2017-09-14 09:36:06 +01:00
2017-09-24 11:59:04 +01:00