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

Cache boxed bool values to reduce allocation overhead #1012

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

Erarndt
Copy link
Contributor

@Erarndt Erarndt commented Mar 30, 2022

There are around 1MB of allocations caused by boxing boolean values when opening up Orchard Core which we can avoid by caching the values.

@davkean
Copy link
Member

davkean commented Apr 1, 2022

Note this only shows up under ETL tracing, but helps to reduce the noise as we're looking through these.

@davkean davkean merged commit 2b3b6d1 into microsoft:main Apr 1, 2022
@AArnott AArnott added this to the v17.3 milestone Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants