News for hackers. Stuff that matters.
Re:The humble for loop in Rust by arllk on Thursday December 12, 2024 @08:03PM (#42405044)
Even when passing the array as a borrow instead of a clone[1], map still auto-vectorizes and performs the new allocation in one go, avoiding the bounds check and possible calls to grow_one

[1] https://godbolt.org/z/K9z6PvdYh

There are no comments on this comment yet.