Skip to content

Use std::move when decoding maps and vectors#868

Merged
dkulp merged 1 commit intoapache:masterfrom
nlyan2025:master
May 15, 2020
Merged

Use std::move when decoding maps and vectors#868
dkulp merged 1 commit intoapache:masterfrom
nlyan2025:master

Conversation

@nlyan2025
Copy link
Copy Markdown
Contributor

@nlyan2025 nlyan2025 commented Apr 28, 2020

Avro currently constructs map and vector elements on the stack, decodes in to them, and then copies the resulting values in maps and vectors.

This results in a lot of unnecessary memory allocation when decoding.

@probot-autolabeler probot-autolabeler bot added the C++ Pull Requests for C++ binding label Apr 28, 2020
@anhldbk
Copy link
Copy Markdown
Contributor

anhldbk commented May 13, 2020

@nlyan look fine to me :)

@Fokko Fokko requested a review from thiru-mg May 13, 2020 18:49
@dkulp dkulp merged commit b2c5809 into apache:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ Pull Requests for C++ binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants