Skip to content

Conversation

@malik672
Copy link
Contributor

step_by and chunks_exact do some assert x = 0 underneath

example:
#[stable(feature = "chunks_exact", since = "1.31.0")] #[rustc_const_unstable(feature = "const_slice_make_iter", issue = "137737")] #[inline] #[track_caller] pub const fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T> { assert!(chunk_size != 0, "chunk size must be non-zero"); ChunksExact::new(self, chunk_size) }

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 31, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing malik672:MMS (6c2d50f) with main (add1b54)

Summary

✅ 173 untouched benchmarks

@malik672
Copy link
Contributor Author

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing malik672:MMS (d179737) with main (add1b54)

Summary

✅ 173 untouched benchmarks

should move: https://godbolt.org/z/o6d3W7W5c
but seems like compile is the main bottleneck so this looks like a micro optimization

@malik672
Copy link
Contributor Author

based on the codspeed treshold of 3%

Screenshot 2026-01-31 at 06 25 50

tthis falls beneath

@malik672
Copy link
Contributor Author

malik672 commented Feb 2, 2026

closing this insignificant in the long run

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