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

Commits on Oct 28, 2024

  1. Pass slice instead of Vec during map serialization.

    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]>
    PiotrSikora committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    74218ba View commit details
    Browse the repository at this point in the history