Closed arnetheduck closed 2 months ago
Attention: Patch coverage is 88.70968%
with 7 lines
in your changes are missing coverage. Please review.
:exclamation: No coverage uploaded for pull request base (
master@2b53196
). Click here to learn what that means.
On holesky, this PR reduces memory usage of the seen cache by ~100mb
The
seen
cache currently is a significant memory usage hotspot due to its inefficient implementation: for every entry, two copies of the message id + timing data +seq
overhead causes it to use much more memory than it has to.In addition, each check involves several layers of allocations as the computed message id gets salted.
This PR improves on the situation by: