Riccardo Cohen wrote:

I tried compiling metakit with DigitalMars compiler : http://www.digitalmars.com/ .
[very interesting results]

But i'm afraid there is a problem with memory management. At the end, digitalmars executable takes 38Mb of memory, and MSDEV executable takes 800 kb. I think the whole file is in memory.

This indicates that memory-mapped files are not being used.


Look at ResetFileMapping() in fileio.cpp and make sure the CreateFileMapping and MapViewOfFile calls return good values. If not, MK reverts to fully mem-resident reading of data, which grows to consume memory until the next Commit() or Rollback().

This is the modifications I made for DigitalMars :
- fileio.cpp : I removed _O_NOINHERIT ifdef __DMC__
- string.cpp : I added __DMC__ for #define strcasecmp stricmp
- win/config.h : I added __DMC__ with _MSC_VER >= 1000 for memory mapped file

Thanks, once you have the memory issue fixed, I'd like to integrate all changes.


-jcw

_______________________________________________
metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to