Nonetheless, it can apparently made a difference: See this post. It seems that, at one point at least, the presence of an assert triggers a compiler optimization that wouldn’t be triggered otherwise.
jeffreyesun
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Question on lazy map function | 10 | 4009 | January 17, 2021 | |
| Not understanding iterators and lazy evaluation | 11 | 1254 | October 14, 2020 | |
| Defining a function with Iterators.filter - slower performance? | 4 | 846 | August 18, 2021 | |
| Filtering elements of a generator without collecting | 5 | 384 | March 27, 2023 | |
| Should there be a `mapfilter` function or macro? | 5 | 534 | August 6, 2021 |