Skip to content

Optimize LinearReader::next_record #1346

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

Merged
merged 1 commit into from
Mar 16, 2025
Merged

Optimize LinearReader::next_record #1346

merged 1 commit into from
Mar 16, 2025

Conversation

eloff
Copy link
Contributor

@eloff eloff commented Mar 16, 2025

I just spotted that we zero the buffer with resize and then immediately overwrite it. Using clear + extend is more efficient and is a quick fix with no downside.

@eloff eloff merged commit c286569 into main Mar 16, 2025
23 checks passed
@eloff eloff deleted the optimize-buffer-handling branch March 16, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants