In this discussion How to make a vector of parametric composite types? - #11 by Olivier_Merchiers it also appeared from benchmarks that empty instances were faster than using types.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Should I dispatch on singleton types or their instances? | 6 | 1340 | September 1, 2019 | |
Naming of singleton types and their instance | 10 | 2412 | January 17, 2018 | |
Best practices for type dispatch? | 3 | 1180 | April 11, 2017 | |
Weird Tuple types that seem like they should be disallowed? | 11 | 722 | March 14, 2021 | |
Abstract type versus singleton struct | 6 | 866 | March 25, 2020 |