[fpc-devel] NoGlobals branch

Michael Schnell mschnell at lumino.de
Wed Aug 11 16:30:23 CEST 2010


  On 08/11/2010 03:33 PM, Florian Klaempfl wrote:
> I don't think that threadvars really hurt if it resolves the cyclic
> dependencies.
(Many) Threadvars are no performance problem at all unless they are 
_evaluated_ very often. If (e.g.) the "execute" of the thread creates a 
class, saves the instance pointer in a threadvar and then calls a 
function with the class as a parameter, and finally does a free, the 
threadvar is only evaluated twice, so no problem at all.

-Michael



More information about the fpc-devel mailing list