Skip to content
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

575 performance hit with numerous class initializations 2.0 #585

Conversation

baseTwo
Copy link
Collaborator

@baseTwo baseTwo commented Oct 7, 2024

Work for

Updating libraries to only be accessible via the singleton pattern (single static instance property, and private constructor)

Introduced a static interface for this called ISingleton<TSelf> which contains the property static TSelf Instance { get; }

Introduced another interface ILibrary which has three properties: string Name { get; }, string Version { get; } and ILibrary[] Dependencies { get; }. Having this interface makes it possible to avoid getting to dependencies via reflection. (We could probably add additional members here to make it easier to get to valuesets, etc)

@baseTwo baseTwo linked an issue Oct 7, 2024 that may be closed by this pull request
@baseTwo baseTwo marked this pull request as ready for review October 8, 2024 11:23
@baseTwo
Copy link
Collaborator Author

baseTwo commented Oct 8, 2024

Additional requirements were added to the issue, so changing back to draft

@baseTwo baseTwo marked this pull request as draft October 8, 2024 12:01
@baseTwo baseTwo changed the title 575 performance hit with numerous class initializations 20 575 performance hit with numerous class initializations 2.0 Oct 8, 2024
@baseTwo baseTwo marked this pull request as ready for review October 8, 2024 12:47
@baseTwo
Copy link
Collaborator Author

baseTwo commented Oct 8, 2024

Opened again, might be worthwhile to split this issue into two parts with the comments that were added to the original issue.

@ewoutkramer ewoutkramer merged commit 5492d25 into develop-2.0 Oct 14, 2024
2 checks passed
@ewoutkramer ewoutkramer deleted the 575-performance-hit-with-numerous-class-initializations-20 branch October 14, 2024 08:30
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 hit with numerous class initializations (2.0)
2 participants