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

refactor encoder to manage the chunk buffer in place #1663

Merged
merged 3 commits into from Nov 1, 2021

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Oct 28, 2021

What does this PR do?

Refactor encoder to manage the chunk buffer in place.

Motivation

There are cases where v8 is otherwise unable to optimize calls to Chunk.push(). Doing this in place also allows altering the buffer out of order, so that keys don't need to be copied to a new array when encoding maps.

@rochdev rochdev requested a review from a team as a code owner October 28, 2021 16:12
@rochdev rochdev added this to the 1.5.1 milestone Nov 1, 2021
@rochdev rochdev merged commit 84c8306 into master Nov 1, 2021
@rochdev rochdev deleted the remove-chunk-push branch November 1, 2021 21:51
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.

None yet

2 participants