Skip to content

Conversation

ash2k
Copy link
Contributor

@ash2k ash2k commented Jul 2, 2025

json.Decoder() copies data from the reader into a temporary buffer. This is an extra copy that is not necessary since we have the data as a slice already.

json.Decoder() copies data from the reader into a temporary buffer. This is an extra copy that is not necessary since we have the data as a slice already.
@rueian
Copy link
Collaborator

rueian commented Jul 2, 2025

Thanks @ash2k!

@rueian rueian merged commit 440c5e0 into redis:main Jul 2, 2025
34 checks passed
@ash2k ash2k deleted the simplify-json-decode branch July 2, 2025 03:43
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