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

Fix RemoveWriterByIndex bug, replace ArrayList in BitmapMetadataBlockWriter #9871

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

h3xds1nz
Copy link
Contributor

@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Community Contribution A label for all community Contributions Included in test pass PR metadata: Label to tag PRs, to facilitate with triage Status:Completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants