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.
zk/tests/fixtures/full-sample/zbon.md

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: