Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use <[T]>::split_at_checked instead of two separate get calls #64

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

faern
Copy link
Member

@faern faern commented Jul 26, 2024

Simplifies the code primarily. Probably allows for sliiightly more optimized code when compiling without optimizations also (?) For opt-level=3 the result is the same as before.

This split method was stabilized in Rust 1.80, released yesterday. But we don't need to support any old compilers. We are also not aiming for a release of this program/library right away. This is just a cleanup I have been wanting to do for a long time :D


This change is Reviewable

Simplifies the code. Probably allows for more optimized code when
compiling without optimizations. For opt-level=3 the result is the same
as before
@faern faern requested a review from Serock3 July 26, 2024 02:26
@faern faern merged commit f3708b0 into main Jul 26, 2024
12 checks passed
@faern faern deleted the use-split_at_checked branch July 26, 2024 13:54
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