Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWasteful Vec allocation in read_string and read_vec #118
Comments
This was referenced Feb 23, 2017
|
This optimization would only affect the |
|
@khuey: also |
|
Yes, forgot that one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Every String and Vec<u8> deserialization (as of #115) allocates a fresh vector. From what we've seen in the JSON deserializer, reusing a long-lived buffer would be a huge improvement.