Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(server): improve cache size calculation and memory tracking #1529

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

hubcio
Copy link
Contributor

@hubcio hubcio commented Feb 13, 2025

This commit refactors the cache size calculation by replacing the
LocalSizeable trait with a new RealSize trait. The RealSize
trait provides a more accurate calculation of the memory size of
types, including overhead from containers like Arc and Vec.

@hubcio hubcio force-pushed the improve-cache-size-calc branch from 1a4f2a1 to 00bdcf5 Compare February 13, 2025 21:03
This commit refactors the cache size calculation by replacing the
`LocalSizeable` trait with a new `RealSize` trait. The `RealSize`
trait provides a more accurate calculation of the memory size of
types, including overhead from containers like `Arc` and `Vec`.
@hubcio hubcio force-pushed the improve-cache-size-calc branch from 00bdcf5 to e7d5e16 Compare February 13, 2025 21:03
@spetz spetz merged commit 44de98c into master Feb 14, 2025
17 checks passed
@spetz spetz deleted the improve-cache-size-calc branch February 14, 2025 10:33
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