diff options
| author | Dan Engelbrecht <[email protected]> | 2023-12-11 06:36:48 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-11 12:36:48 +0100 |
| commit | c6cce91a514ba747b19f4fe8acfd2443405c960d (patch) | |
| tree | 9fc2916f7b730cd769492f7fdf45ef454381fb62 /src/zenserver/admin/admin.cpp | |
| parent | Update CHANGELOG.md (diff) | |
| download | zen-c6cce91a514ba747b19f4fe8acfd2443405c960d.tar.xz zen-c6cce91a514ba747b19f4fe8acfd2443405c960d.zip | |
mem cache perf improvements (#592)
- Improvement: Refactor memory cache for faster trimming and correct trim reporting
- Improvement: Added trace scopes for memory cache trimming
Adding a link back to the cache item payload on the memory cache item allows us to iterate over only the items cached in memory instead of over the entire index.
This also allows us to do efficient compact of the memory cache array when trimming.
It adds 4 bytes of overhead to each item cached in memory.
Diffstat (limited to 'src/zenserver/admin/admin.cpp')
0 files changed, 0 insertions, 0 deletions