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
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel