News for hackers. Stuff that matters.
Re:Starbucks CEO will work a shift at the company’s cafes on... by WalterBright on Friday March 24, 2023 @03:56PM (#35294576)
> 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.

There are no comments on this comment yet.