Skip to content

Optimization: get rid of static constructors#454

Merged
SergeiPavlov merged 3 commits intomaster-servicetitanfrom
staticCtor
Mar 12, 2026
Merged

Optimization: get rid of static constructors#454
SergeiPavlov merged 3 commits intomaster-servicetitanfrom
staticCtor

Conversation

@SergeiPavlov
Copy link
Copy Markdown
Collaborator

Here is the explanation why inline initializers are faster:
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1810

Comment thread Orm/Xtensive.Orm/Orm/Configuration/NameMappingCollection.cs Outdated
Comment thread Orm/Xtensive.Orm/Orm/Configuration/SessionConfiguration.cs Outdated
Comment thread Weaver/Xtensive.Orm.Weaver/MessageLogger.cs Outdated
@SergeiPavlov SergeiPavlov merged commit 4b0cdb6 into master-servicetitan Mar 12, 2026
84 checks passed
@SergeiPavlov SergeiPavlov deleted the staticCtor branch March 12, 2026 23:45
SergeiPavlov pushed a commit that referenced this pull request Mar 19, 2026
…te-on-commit-upgrade

No exception overwriting when it happens on upgrade transaction commit
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.

3 participants