On Thu, 25 Sep 2008, Szak�ts Viktor wrote:

Hi Viktor,

>> [ Update: Tried MinGW 4.3.2 with -DHB_USE_TLS, and I'm
>> still getting the same error as above. Maybe I'm doing
>> something wrong, which could well may be given the zillions
>> of factors involved. ]
> I did something wrong. Too much compilers and compiled
> environments on one computer...
> So, with 4.3.2 TLS is working. Let's see the results:
>           App   Real
> MT-412: 65.05  65.52
> MT-432: 64.73  65.34
> ST-412: 45.19  45.69
> ST-432: 40.77  41.11
> I conclude that TLS support in 4.3.2 is pretty good
> to enhance ST performance, and gives a very small
> advantage in MT mode.

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.

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

Reply via email to