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

Optimize in ByteString to prevent excessive object allocation #1034

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

junchuanwang
Copy link
Contributor

@junchuanwang junchuanwang commented Nov 5, 2024

This PR is published on behalf of Misha Dmitriev.

Summary

These changes are aimed at improving the efficiency and accuracy of the byte iteration process within the ByteString class. By eliminating unnecessary object allocation from new object (ByteIterator) for every byte in a string that it searches.

Test

Unit test passed

@junchuanwang junchuanwang merged commit 5ec7eb9 into master Nov 5, 2024
2 checks passed
@junchuanwang junchuanwang deleted the bytestring_optimization branch November 5, 2024 21:52
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.

2 participants