bsc/eth/filters
Felix Lange 9afc6816d2
common/lru: add generic LRU implementation (#26162)
It seems there is no fully typed library implementation of an LRU cache.
So I wrote one. Method names are the same as github.com/hashicorp/golang-lru,
and the new type can be used as a drop-in replacement.

Two reasons to do this:

- It's much easier to understand what a cache is for when the types are right there.
- Performance: the new implementation is slightly faster and performs zero memory
   allocations in Add when the cache is at capacity. Overall, memory usage of the cache
   is much reduced because keys are values are no longer wrapped in interface.
2022-11-14 15:41:56 +01:00
..
api_test.go all: change format 0x%x to %#x (#25221) 2022-07-04 11:03:32 +03:00
api.go eth/filters: send rpctransactions in pending-subscription (#26126) 2022-11-14 14:48:01 +01:00
bench_test.go eth/filters: add global block logs cache (#25459) 2022-08-19 11:14:59 +02:00
filter_system_test.go eth/filters: send rpctransactions in pending-subscription (#26126) 2022-11-14 14:48:01 +01:00
filter_system.go common/lru: add generic LRU implementation (#26162) 2022-11-14 15:41:56 +01:00
filter_test.go eth/filters: fix failing benchmark-test (#26144) 2022-11-09 09:49:42 +01:00
filter.go eth/filters: change filter block to be by-ref (#26054) 2022-10-27 15:25:01 +02:00