[fpc-devel] Compiler bottlenecks]

Florian Klaempfl florian at freepascal.org
Thu Jul 15 18:47:30 CEST 2010

Hans-Peter Diettrich schrieb:
> Florian Klaempfl schrieb:
>>> Unless you are doing a cold compile, the main bottlenecks in the
>>> compiler are the memory manager (mostly the allocation of memory,
>>> freeing is faster), zero-filling new class instances (and partially
>>> resetting the register allocator) and tobject.initinstance.
>> I wonder if zeroing memory blocks (so when allocating them we know
>> already that they contain zeros) and preparing new register allocators
>> in a helper thread could improve this.
> Such initialized memory may reside in the wrong cache, on multi-core
> systems.

Yes, without benchmarking it, we cannot know.

More information about the fpc-devel mailing list