On Mon, 28 Feb 2011, Andi Jahja wrote: Hi,
> 2011-02-28 15:40 UTC+0700 Andi Jahja <xharbour/AT/telkom/net/id> > * source/vm/fm.c > ! enable use of DL malloc to Windows OS It should be available for all OS-es if user sets HB_FM_DL_ALLOC HB_MT_VM is Harbour only macro. In xHarbour the closest meaning has HB_THREAD_SUPPORT macro. > * source/vm/dlmalloc.c > + added SVN file Id > ; REFRESH NOTE : > DL malloc is a group of functions which will replace the use of > compiler's > native malloc/free/realloc written by Doug Lea. My stress tests > disclosed > that it (ver 2.8.3) is very stable and can boost speed performance in > the > range of 30-40%. Actually, version 2.8.4 has been released on May 24, > 2009 > but, IMO we'd better stick to version 2.8.3 due to it's stability and > not > much improvement offers by the newer version. Instead, version 2.8.4 > _degrades_ OpenWatcom performance, ie. makeing OW application run 2x > slower (!) Above is completely false information (some serious problems which can be exploited by user code were fixed in 2.8.4) and you have to make something wrong in your tests or your xHarbour builds. This are speedtst results for windows OW builds from current Harbour SVN: HB_FM_DL_ALLOC (above modified 2.84 version) [ total application time: ]....................................23.00 [ total real time: ]...........................................23.19 HB_FM_STD_ALLOC [ total application time: ]....................................26.30 [ total real time: ]...........................................26.50 So DL malloc is faster then then memory manager used by OpenWatcom which is one of the fastest MM. In OW MM the speed improvement is reached in rather unpleasure way - it simply does not free unused memory to system. Of course it has to improve the speed when very larger blocks are allocated and freed many times but the cost is rather unacceptable in multiprocess environment. See OpenWatcom source code for details. Anyhow DL malloc is faster even without such tricks and of course you can tune it using build time macros to work just like OW MM. > + source/vm/dlmalloc_version_284.c > ! new version of dlmalloc uploaded just for library (please read above > note) This is not pure dlmalloc 2.84 but modified by me version from Harbour SVN repository with OS2 support, spinlocks support fixes for strict aliasing optimization and some minor build fixes for different platforms/compilers. This code needs Harbour headers to be fully functional. Please leave at least some basic information about it. best regards, Przemek ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ xHarbour-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xharbour-developers

