3 ms·
> My code base is hilariously slow to compile, and the biggest single culprit is the variant header. yeah, <variant> is so slow that I wrote my own (domain-spe
by jcelerier 8y ago
> My code base is hilariously slow to compile, and the biggest single culprit is the variant header.
yeah, <variant> is so slow that I wrote my own (domain-specific but could be repurposable) variant-like code generator. It keeps the same API but makes everything sooooooooooooo much faster to compile - especially the visitations with multiple arguments.
(ugly fugly, full of dirty hacks, but it only had to run once or twice : https://github.com/OSSIA/libossia/blob/master/tools/gen_variant/gen_variant.cpp https://github.com/OSSIA/libossia/blob/master/tools/gen_vari...)