"Kirill 'Big K' Katsnelson" <kkm(a)dtmx.com> writes:
A question: does mmap gives any performance benefits over read when
loading the dump file?
Well, mmap() allows you to read only the parts of the file you're
interested in. If call with MMAP_SHARED, such memory doesn't need
additional space on swap either.
I'm not sure how well our dumper fits with the mmap model. If I
understand it correctly, XEmacs can't use the data directly from the
file, it needs to relocate pointers and stuff.
NT is primarily a single-user system, so the case of 2+ xemacsen
should be rare, and the shared memory benefit would not pay off. I
will fake mmap if it gives performance benefits though, even a
little.
Can't you use CreateFileMapping() under Windows, as a mmap()
equivalent?