Skip to content

Lookup cache#14

Merged
marselester merged 4 commits intomasterfrom
lookup-cache
Mar 21, 2026
Merged

Lookup cache#14
marselester merged 4 commits intomasterfrom
lookup-cache

Conversation

@marselester
Copy link
Copy Markdown
Owner

@marselester marselester commented Mar 18, 2026

  • within() was renamed to scan(), it doesn't cache anything internally. Now next() returns Result that needs to be freed with `result.deinit()
  • scanWithCache() was added to do network scans using a cache that owns the memory, i.e., no need to call result.deinit() though cache.deinit() is needed to free the cache
  • new lookupWithCache() has the same semantics. It showed ~15% faster GeoLite2-City.mmdb lookups on 1M random IPs (1.28M vs 1.47M lookups per second).

@marselester marselester force-pushed the lookup-cache branch 4 times, most recently from efeaf3a to 35cd837 Compare March 18, 2026 02:44
@marselester marselester force-pushed the lookup-cache branch 2 times, most recently from 0e842c7 to e120020 Compare March 20, 2026 22:06
@marselester marselester merged commit a3f3f02 into master Mar 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant