[ntuple] Memory optimization for the descriptor - #23400
Merged
Merged
Conversation
jblomer
force-pushed
the
ntuple-memopt
branch
from
September 17, 2026 05:46
7b0ffd8 to
d6c4573
Compare
silverweed
reviewed
Sep 17, 2026
jblomer
force-pushed
the
ntuple-memopt
branch
from
September 17, 2026 08:20
d6c4573 to
6c0af1a
Compare
Test Results 23 files 23 suites 3d 16h 57m 15s ⏱️ For more details on these failures, see this check. Results for commit a3d6a1b. ♻️ This comment has been updated with latest results. |
jblomer
force-pushed
the
ntuple-memopt
branch
from
September 17, 2026 14:14
6c0af1a to
3de6811
Compare
silverweed
reviewed
Sep 18, 2026
silverweed
left a comment
Contributor
There was a problem hiding this comment.
Thanks. looks good to me, just a couple more comments
jblomer
force-pushed
the
ntuple-memopt
branch
from
September 21, 2026 11:58
3de6811 to
a3d6a1b
Compare
Reduce size of the struct from 72 to 56 bytes (in most cases, unless the column has a value range)
This factory method is an unnecessary complication. Field descriptors are now directly added from RFieldBase objects through a new RNTupleDescriptorBuilder::AddField() overload.
Member reordering reduced the size from 248B to 240B.
...instead of cloning it. Avoids the memory copies.
...instead of cloning it. Avoids the memory copies.
...instead of cloning.
An internal utility class that maintains a sorted list of immutable strings.
Let the field descriptors strings be stored in the string pool of the surrounding RNTupleDescriptor. Deduplicates the type names and field names. Also reduces the size of the RFieldDescriptor struct from 240B to 152B.
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.
Several optimizations to reduce the memory footprint and the number of memory copies of the schema part of the descriptor. Most notably introduces string interning for the field descriptor strings.