2 ms·
> an experienced C programmer is going to have a sense from the start whether to go with a static/local struct or a malloc'ed one In my and others' extensive e
by WalterBright 4y ago
> an experienced C programmer is going to have a sense from the start whether to go with a static/local struct or a malloc'ed one
In my and others' extensive experience in C, almost everyone is wrong about where their programs are consuming time. Profiling almost always produces surprising results. Being about to easily refactor programs to experiment with different data organizations is a superpower for a language.
C programs are difficult to refactor, and so they tend to persist with their earliest design decisions despite changing requirements and profile results.