3 ms·
> in C, generic code is usually implemented with the runtime overhead of void pointers or function pointers.* When performance really matters, seasoned C progr
by attractivechaos 10y ago
> in C, generic code is usually implemented with the runtime overhead of void pointers or function pointers.*
When performance really matters, seasoned C programmers more often write task-specific implementations or choose macro-based libraries. In this particular benchmark, the C implementation is using a macro-based hash table which does not have the penalty of void*.