------- Comment #12 from dannysmith at users dot sourceforge dot net 2007-06-03 21:37 ------- (In reply to comment #11) > Hi > > > Now we looking at the second patch the host-mingw32.c.diff > I have not tested it in vista or windows yet. But what I can see > it using vritualalloc that mean it alloc memory and getting allot slower > against > FileMapping we talking about allot extra comping time, and it is not a good > idea for big project like reactos, and another thing the swap file will > incress > and windows does not always cleanup stuff in the swapfile until a reboot, that > is few big disages with host-mingw32.c.diff it exists allot other disgante > over
Huh? This is called only once during compilation. What evidence do you have that CreateFileMapping is faster than VirtualAlloc here? We are not sharing memory across processes so we don't really need to create a named memory-mapped object. I would prefer to keep the memory object anonymous rather than hardcoding a name that could be accessed by other processes. Danny -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30335