Re: Regarding my old mmap patch
"Nuno Lopes" <[email protected]> Tue, 5 Sep 2006 18:38:38 +0100
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <001f01c6d112$21e30360$0100a8c0@pc07653> |
> Perhaps all this could be moved into a mmap_win32.c then? I already > strongly dislike platform.h already because it brings in so many > includes/defines that a public API shouldn't. yes, I think so. Or create a file per OS (win32.c, unix.c, ..) >> Put another way, why not use memory-mapped files on all (or at least >> most) >> platforms? Unix, Linux, Windows, OS/2, and probably Mac/X, should all >> support this functionality. So a compromise might be to wrap the Windows >> shared-memory APIs to look like Unix. > > I have little experience mmapping on *nix but I do understand they are > different enough that it would probably take more code to wrap it than > to just maintain separate files with the same APIs. ah, that remindes me that I can also make a similar patch to use mmap() on *nix systems. It also grants a huge performance boost on larger files. Nuno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642