Skip to content

Replace itertools dependency with methods from the standard library#93

Open
jhorstmann wants to merge 1 commit into
criterion-rs:masterfrom
jhorstmann:remove-itertools-dependency
Open

Replace itertools dependency with methods from the standard library#93
jhorstmann wants to merge 1 commit into
criterion-rs:masterfrom
jhorstmann:remove-itertools-dependency

Conversation

@jhorstmann

Copy link
Copy Markdown

While doing a dependency audit we noticed that we had a dependency on an old version of itertools exclusively through criterion. Looking at the code, it seemed relatively trivial to replace the dependency with methods from the standard library instead of bumping the dependency version.

The izip macro is just a small wrapper around zipping multiple iterators, it only saves a tiny bit of code.

A chunk_by method was added to slices and stabilized in Rust 1.77. The method is slightly more generic, since it takes a comparison function instead of a key extractor.

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