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 | 1157 | January 30, 2018 | |
| Why are my higher order functions a million times slower than they should be? | 7 | 842 | April 26, 2022 | |
| Metaprogramming to automatically test new versions of code | 9 | 438 | February 16, 2025 | |
| Significant difference in execution speed between similar functions with nested loops | 4 | 285 | March 8, 2023 | |
| How to alias a function to have maximum speed | 8 | 610 | January 14, 2023 |