Przemek,

I do not know details for MinGW TLS but it's possible that it will be
imporved yet in the future, f.e. now thay can use simple function call
like in BCC. Anyhow in current SVN code the cost of TLS is quite
efficient hidden by HB_STACK_PRELOAD. Just try to remove:

  #define HB_STACK_PRELOAD

fro the beginning of estack.c and hvm.c and rebuild Harbour without
HB_USE_TLS. Then compare the results. If they will be the same then
probably current MinGW version simply calls TlsGetValue() for native
TLS access so it the same as calling this function by us.

I've now created a new local production build (which fixed
-gc3 / hbtest) with above changes, and results went up to
96.67 / 97.39 compared to unmodified build value 64.38 / 64.81.
Both with MinGW 4.3.2.

I hope this helps.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to