Skip to content

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Oct 4, 2023

This is followup of #151

With big number of nodes we have huge RAM consumption in ModelMapping class

objects bytes class
18,750 413,982,672 Dictionary<Xtensive.Orm.Model.TypeInfo, Xtensive.Sql.Model.Table>+Entry[]

We can represent this mapping as Table[] array.

Then our RAM consumption will be 1100*8*18750 ~= 165M.
2.5 times less, saving 248MB

@SergeiPavlov SergeiPavlov requested a review from botinko October 4, 2023 03:02
@SergeiPavlov SergeiPavlov merged commit c7577b8 into master-servicetitan Oct 4, 2023
@SergeiPavlov SergeiPavlov deleted the OptimizeTypeInfoToTable branch October 4, 2023 23:21
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