Hi Przemek,
But the cost of memory allocations is very big. To improve scalability
here memory manager optimized for MT mode is necessary. It's not
directly
related to Harbour though we can add some workarounds to reduce the
overhead
in Harbour layer. But rather not now. In real applications it should
not
cause such big problem because threads will make also other things
not only
allocate and free memory in a loop :-)
If we can do something on the Harbour level even better,
but the latest dlmalloc version seems to give very good
results. Since it's unreleased I don't know how safe it
is to include it though. We should also explore how to
avoid the slowdown in ST mode.
You can find the file here:
http://www.syenar.hu/harbour/dlmalloc-284.zip
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour