Skip to content

perf: lazy it.Reverse iteration instead of in-place mutation#814

Merged
samber merged 1 commit into
samber:masterfrom
d-enk:perf-it-reverse
Feb 25, 2026
Merged

perf: lazy it.Reverse iteration instead of in-place mutation#814
samber merged 1 commit into
samber:masterfrom
d-enk:perf-it-reverse

Conversation

@d-enk

@d-enk d-enk commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Replace mutable.Reverse() with lazy iteration from end.

This avoids unnecessary array mutation and reduces overhead.

Replace mutable.Reverse() with lazy iteration from end.
This avoids unnecessary array mutation and reduces overhead.
@samber samber merged commit c49f846 into samber:master Feb 25, 2026
1 check passed
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.

2 participants