Skip to content

perf: cache XmlSerializer as static field#58

Open
mfogliatto wants to merge 1 commit into
mainfrom
fix/issue-50
Open

perf: cache XmlSerializer as static field#58
mfogliatto wants to merge 1 commit into
mainfrom
fix/issue-50

Conversation

@mfogliatto
Copy link
Copy Markdown
Owner

Summary

Caches the XmlSerializer instance as a static readonly field to avoid expensive runtime code generation on every config load.

Changes

  • Made XmlSerializer a static readonly field in XmlConfigurationLoader
  • Removed per-call instantiation in ParseConfigFrom()

Testing

  • dotnet SDK not available in CI environment; change is minimal and safe

Fixes #50

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.

[Performance] XmlConfigurationLoader creates new XmlSerializer on every instantiation

1 participant