site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Feb 4, 2010, at 2:23 AM, Godfrey van der Linden wrote:
Unfortunately the mmap won't really help you as it will map the entire file into memory at some stage.
Yes, but more efficiently than reading the entire file into a malloc block (which is what I inferred the OP is doing; but maybe I'm wrong.) Couldn't one mmap() only a piece of the file at a time? I.e. mmap the first 10MB, then unmap it and map the next 10MB, etc. —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com