3 ms·
I suspect those modern compilers are also optimizing more than Delphi 2 was, and are probably parsing a somehow larger language. Granted, it could be a case of
by yumaikas 6y ago
I suspect those modern compilers are also optimizing more than Delphi 2 was, and are probably parsing a somehow larger language.
Granted, it could be a case of a code base adapting to change poorly over time.
- magicalhippo 6y agoDue to certain language features that's been added, like generics, the binaries can also be a lot larger. So could very well be IO constraints. At work we currently use Delphi 10.3 (10.4 was recently released), and it compiles and links ~1Mloc in less than 10 seconds, on my older 4770k with a Samsung 850 SATA SSD.
- spatulon 6y agoI follow the tweet author (Per) and I know he's a big fan of building compilers in the style of Niklaus Wirth. I think the idea is that modern compilers generate very inefficient code first, and then have many expensive optimization passes, while Wirth advocated for simpler compilers that just generated reasonably efficient code in a single pass. > parsing a somehow larger language That would also explain it, but I think it's appropriate to acknowledge the effect it has on compile times when you add complexity to the language. A lot of folks avoid C++ features (or the language entirely) simply because they would inflate compilation times too much, and it clearly wasn't a priority for the language committee when those features were added.