mleku
77d153a9c7
Go / build-and-release (push) Has been cancelled
Add LRU cache for serial lookups with dynamic scaling (v0.36.17)
...
- Add generic LRUCache[K, V] implementation using container/list for O(1) ops
- Replace random 50% eviction with proper LRU eviction in SerialCache
- Cache now starts empty and grows on demand up to configured limits
- Use [32]byte keys instead of string([]byte) to avoid allocation overhead
- Single-entry eviction at capacity instead of 50% bulk clearing
- Add comprehensive unit tests and benchmarks for LRUCache
- Benchmarks show ~32-34 ns/op with 0 allocations for Get/Put
Files modified:
- pkg/database/lrucache.go: New generic LRU cache implementation
- pkg/database/lrucache_test.go: Unit tests and benchmarks
- pkg/database/serial_cache.go: Refactored to use LRUCache
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-25 06:25:21 +01:00
..
2025-12-25 06:03:53 +01:00
2025-12-25 06:03:53 +01:00
2025-11-23 08:15:06 +00:00
2025-11-23 08:15:06 +00:00
2025-12-23 14:47:50 +01:00
2025-12-02 07:51:59 +00:00
2025-12-03 12:31:25 +00:00
2025-12-25 06:03:53 +01:00
2025-12-03 20:49:49 +00:00
2025-12-03 21:24:43 +00:00
2025-12-03 12:31:25 +00:00
2025-12-12 08:47:25 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-04 09:28:13 +00:00
2025-12-25 05:30:07 +01:00
2025-12-11 21:36:39 +01:00
2025-12-03 21:24:43 +00:00
2025-12-05 11:25:34 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 20:49:49 +00:00
2025-12-03 20:49:49 +00:00
2025-11-26 21:16:46 +00:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-25 06:03:53 +01:00
2025-11-23 08:15:06 +00:00
2025-11-26 21:16:46 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-03 12:31:25 +00:00
2025-12-11 21:36:39 +01:00
2025-12-12 08:47:25 +01:00
2025-12-05 14:42:22 +00:00
2025-12-03 19:33:37 +00:00
2025-12-03 12:31:25 +00:00
2025-12-25 06:25:21 +01:00
2025-12-25 06:25:21 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-12-22 18:53:30 +01:00
2025-11-09 10:41:58 +00:00
2025-12-03 12:31:25 +00:00
2025-11-02 18:19:52 +00:00
2025-12-03 12:31:25 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 05:13:56 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2025-12-05 11:25:34 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2025-12-03 12:31:25 +00:00
2025-12-01 18:21:38 +00:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-01 18:21:38 +00:00
2025-12-25 06:03:53 +01:00
2025-12-25 06:25:21 +01:00
2025-08-31 16:52:24 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-22 18:53:30 +01:00
2025-12-03 12:31:40 +00:00
2025-12-22 18:53:30 +01:00
2025-12-22 18:53:30 +01:00