Skip to content

Conversation

@mriise
Copy link
Contributor

@mriise mriise commented Dec 16, 2025

@mriise
Copy link
Contributor Author

mriise commented Dec 16, 2025

code cov is failing on stderr, not sure why but thats all the time i have for today.

@vmx
Copy link
Member

vmx commented Dec 17, 2025

The current MSRV of 1.64 is really old. I'm happy to use a newer version. Though moving to 1.87 seems like a bit too harsh version bump. If there's a really good reason to do it, that's also OK. but making the code a bit nicer is probably not good enough for me to justify that.

@mriise
Copy link
Contributor Author

mriise commented Dec 17, 2025

The code style is whatever, its is just to make clippy happy. The only thing I am really attempting here is to turn copying with an iterator to a slice copy. There are likely some performance gains by doing so, I'll see if i can quickly do a bit of benching. Ultimately however it is a micro-optimization.

@mriise
Copy link
Contributor Author

mriise commented Dec 17, 2025

Seems my desktop is too noisy to provide any meaningful benches. It honestly might not even be that noticeable since it probably squashes down to a memcpy after a few dozen iterations anyway.

@vmx
Copy link
Member

vmx commented Dec 18, 2025

Looking at the assembly I don't think that little difference would practically make any performance difference: https://godbolt.org/z/enPTKKcs1.

@mriise
Copy link
Contributor Author

mriise commented Dec 18, 2025

llvm ftw!

@mriise mriise closed this Dec 18, 2025
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.

Copy slice instead of iterating in wrap()

3 participants