Skip to content

Conversation

@d1r1
Copy link
Contributor

@d1r1 d1r1 commented Jan 9, 2026

  • on_replace now allows LRU eviction instead of rejecting
  • Add zero-size item rejection to prevent limit bypass
  • Use saturating arithmetic to prevent overflow/underflow
  • Assert max_bytes > 0 on construction
  • Fix on_grow to always allow table growth
  • Expand test coverage for edge cases

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Criterion results (vs baseline)

Heads-up: runner perf is noisy; treat deltas as a smoke check.

- on_replace now allows LRU eviction instead of rejecting
- Add zero-size item rejection to prevent limit bypass
- Use saturating arithmetic to prevent overflow/underflow
- Assert max_bytes > 0 on construction
- Fix on_grow to always allow table growth
- Expand test coverage for edge cases
@d1r1 d1r1 force-pushed the fix/module-factory-lru branch from 89ede31 to 39f8954 Compare January 9, 2026 12:48
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.

2 participants