Skip to content

Conversation

@scho-furiosa
Copy link

@scho-furiosa scho-furiosa commented Feb 10, 2026

Hello, everyone.

My colleague @chaehhyun found that there are some regressions due to the clone in next during a profiling. We suspect ix.clone() inside Baseiter::next is the culprit, but not 100% for sure as of now. We are still experimenting its impact internally.

I have a couple of questions:

  • I am curious if the cloning of index in next is intentional.
  • If it is not the case, is there any pre-existing perf test in CI?

Thank you.

There is an avoidable `clone` in `next`.

This commit introduces `next_for_mut`, which is similar to `next_for`,
but updates the key in-place, and uses it in `next` instead.
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