I think this approach is similar to the one suggested for toggle-able assertions.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Keeping track of simple vs high-performance versions | 2 | 1149 | January 30, 2018 | |
| Why are my higher order functions a million times slower than they should be? | 7 | 827 | April 26, 2022 | |
| Metaprogramming to automatically test new versions of code | 9 | 411 | February 16, 2025 | |
| Significant difference in execution speed between similar functions with nested loops | 4 | 274 | March 8, 2023 | |
| How to alias a function to have maximum speed | 8 | 592 | January 14, 2023 |