Skip to content

performance improvement #159

Description

@LuoZijun

Hi, i just tried to write a base64 codec and the performance has improved compared to your project.

feel free review code or copy code to this project :)

Code: https://github.com/shadowsocks/crypto2/blob/dev/src/base64.rs

Result:

// Your Project
test base64::bench_crate_decode     ... bench:          31 ns/iter (+/- 5)
test base64::bench_crate_encode     ... bench:          14 ns/iter (+/- 1)
// Me
test base64::bench_decode           ... bench:           7 ns/iter (+/- 2)
test base64::bench_encode           ... bench:           4 ns/iter (+/- 0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions