Skip to content

PERF-269: Optimization: DerivedColumn class so decrease allocation size of MappedColumn #382

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

Merged
merged 5 commits into from
May 20, 2025

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented May 18, 2025

A typical process has ~4M instances of MappedColumn.
image

Most of them have Origin pointing to this.

With this PR we introduce DerivedMappedColumn for which Origin != this (rare case).
The typical MappedColumn object will allocate 8 bytes less.

This will save ~ 35 MB of RAM

@SergeiPavlov SergeiPavlov changed the title Optimization: DerivedColumn class so decrease allocation size of MappedColumn PERF-269: Optimization: DerivedColumn class so decrease allocation size of MappedColumn May 19, 2025
@SergeiPavlov SergeiPavlov merged commit ba31a6a into master-servicetitan May 20, 2025
5 checks passed
@SergeiPavlov SergeiPavlov deleted the DerivedColumn branch May 20, 2025 01:17
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