mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
470 B
Markdown
10 lines
470 B
Markdown
# Zero-cost abstractions in Rust
|
|
|
|
*Zero-cost abstractions* is a term touted (coined?) by Rust-enthusiasts. It means that using higher-level features such as `map`, `filter`, `iterators`, etc. has no performance downsides. They get compiled to the same code we would write by hand with a `for` loop.
|
|
|
|
## Reference
|
|
|
|
* [Comparing Performance: Loops vs. Iterators - The Rust Programming Language](https://doc.rust-lang.org/book/ch13-04-performance.html)
|
|
|
|
:programming:rust:
|