3 ms·
How does that compare to other approaches for generics? I know that you can do monomorphisation, which usually increases the executable size and compilation tim
by Zababa 5y ago
How does that compare to other approaches for generics? I know that you can do monomorphisation, which usually increases the executable size and compilation time, and usually gives faster code, but I don't know about other approcahes.
- mseepgood 5y agoThe two approaches are stenciling (what you call monomorphisation) and dictionaries. Stenciling/monomorphization increases binary size, compilation time and TLB/cache pressure. The dictionaries-only approach has more runtime cost. This hybrid is a middle ground of both.