[fpc-devel] Parallel processing in the compiler

Michael Schnell mschnell at lumino.de
Mon Sep 6 14:30:11 CEST 2010


> What's the problem with using threadvars
As discussed some days ago, the current implementation of Threadvars is 
quite slow (doing a libc call on each access to a threadvar). This 
_could_ be improved but I think  this only makes sense when removing the 
dependency of the RTL  to the libc pthread library, which seems to be 
planned on the long run..

Thus Hans-Peter's idea to do no or only a few  seldom accessed 
Threadvars as the base of the objects that exist on the heap and usually 
are addressed by local variables (on the stack) seems more appropriate.

-Michael



More information about the fpc-devel mailing list