mem-track: Peak memory tracking options with per-id sampling - #1429
Open
TristonianJones wants to merge 2 commits into
Open
mem-track: Peak memory tracking options with per-id sampling#1429TristonianJones wants to merge 2 commits into
TristonianJones wants to merge 2 commits into
Conversation
TristonianJones
force-pushed
the
peak-memory-limits
branch
2 times, most recently
from
August 21, 2026 02:16
5ddc84b to
303d40a
Compare
TristonianJones
force-pushed
the
peak-memory-limits
branch
from
August 21, 2026 18:56
303d40a to
45c2cac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using the observer pattern, introduce peak memory tracking using the
AggregateSizefunctions.The cost of tracking scales with the size of the objects being tracked and the size of the expression.
If inputs in list are expected to be roughly the same size, or there's a high volume of entries, using
sampling to lower the overall cost of tracking while still roughly preserving the intent
a + a[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]a.map(x, x * 2)a.map(x, [x, x]).filter(...)msg.single_int64 + msg.single_int32msg.repeated_int64.map(...)