Skip to content

Conversation

@knsd
Copy link

@knsd knsd commented Sep 22, 2018

Hi, this pr adds pop_n function for the same reasons as in #8, I think it could be useful, this function attempts to pop at most target.len() values off the buffer.

Benchmarks:

pop_n_via_pop           time:   [737.92 ns 741.77 ns 746.32 ns]
pop_n                   time:   [79.724 ns 80.440 ns 81.353 ns]

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