Skip to content

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

Merged
SergeiPavlov merged 5 commits into
master-servicetitanfrom
DerivedColumn
May 20, 2025
Merged

PERF-269: Optimization: DerivedColumn class so decrease allocation size of MappedColumn#382
SergeiPavlov merged 5 commits into
master-servicetitanfrom
DerivedColumn

Conversation

@SergeiPavlov

@SergeiPavlov SergeiPavlov commented May 18, 2025

Copy link
Copy Markdown
Collaborator

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
Comment thread Orm/Xtensive.Orm/Orm/Rse/MappedColumn.cs
@SergeiPavlov
SergeiPavlov merged commit ba31a6a into master-servicetitan May 20, 2025
@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