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

Pass slice instead of Vec during map serialization. #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PiotrSikora
Copy link
Member

Before:

utils::bench_serialize_map ... bench: 66.87 ns/iter (+/- 1.33)
utils::bench_serialize_map_bytes ... bench: 69.42 ns/iter (+/- 1.45)

After:

utils::bench_serialize_map ... bench: 55.84 ns/iter (+/- 1.16)
utils::bench_serialize_map_bytes ... bench: 56.03 ns/iter (+/- 1.19)

Note that this is changed only in the private functions to avoid breaking
the public API.

Before:

utils::bench_serialize_map         ... bench:    66.87 ns/iter (+/- 1.33)
utils::bench_serialize_map_bytes   ... bench:    69.42 ns/iter (+/- 1.45)

After:

utils::bench_serialize_map         ... bench:    55.84 ns/iter (+/- 1.16)
utils::bench_serialize_map_bytes   ... bench:    56.03 ns/iter (+/- 1.19)

Note that this is changed only in the private functions to avoid breaking
the public API.

Signed-off-by: Piotr Sikora <[email protected]>
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.

1 participant