Skip to content

Fix RemoveWriterByIndex bug, replace ArrayList in BitmapMetadataBlockWriter #9871

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Oct 1, 2024

Description

Replaces backing ArrayList in BitmapMetadataBlockWriter and BitmapMetadataBlockWriterEnumerator.

Also fixes a bug in RemoveWriterByIndex function, which would previously not remove the writer.

Sample benchmark showing difference between ArrayList and List<T> with reference type can be found f.e. in #9432.

Customer Impact

Improved performance, decreased allocations, a bug fix.

Regression

No.

Testing

Local build, work with BitmapMetadata.

Risk

Low but note that things might actually work properly and a bit faster now.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners October 1, 2024 22:16
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Oct 1, 2024
@h3xds1nz h3xds1nz force-pushed the replace-arraylist-bitmapmetadata branch from 0c4aa52 to 7d24ae2 Compare October 1, 2024 22:21
@h3xds1nz h3xds1nz changed the title Replace ArrayList in BitmapMetadataBlockWriter, fix RemoveWriterByIndex bug Fix RemoveWriterByIndex bug, replace ArrayList in BitmapMetadataBlockWriter Oct 17, 2024
Copy link
Member

@harshit7962 harshit7962 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harshit7962 harshit7962 merged commit e4e191e into dotnet:main Jan 29, 2025
8 checks passed
@harshit7962
Copy link
Member

Thank you @h3xds1nz for the contribution.

@h3xds1nz
Copy link
Member Author

@harshit7962 Thank you :)

@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants