-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
refactor: remove unnecessary to_string() #99
refactor: remove unnecessary to_string() #99
Conversation
murlakatamenka
commented
Mar 12, 2024
Respect the honest work. All new patches need to be rebased onto |
@Shinyzenith yeah, no problems here. While at it, I'll push more commits to fix current |
c877a6a
to
682ba2d
Compare
Okay, it's a beefier PR now and ready to be reviewed. |
682ba2d
to
00f0c24
Compare
Hi the pr target needs to be changed to the above mentioned branch. |
Also I see you changed the previous commits of the branch which isn't ideal as their signature in the git object store will change. |
Typically `&Vec<T>` isn't something you want when you need a read-only view over a Vec, because it adds another level of indirection: Vec already stores a pointer to heap-allocated buffer internally. Using slices `&[T]` removes such unnecessary level of indirection and is considered a cleaner design. It is cache friendlier and can be better optimized by the compiler (not that it should matter in this case).
00f0c24
to
08dfe1d
Compare
Yeah, sorry for the fuss. The order is restored now, the target branch is that feature freeze one. |
Thank you for the patch! It's definitely honest work! |