On Thu, Jul 17, 2008 at 6:45 AM, erik quanstrom <[EMAIL PROTECTED]> wrote:
> i haven't found this to be the case. it's not always the case. > > in a former life, one i'd rather forget, i did > full text search. > > in order to return the full text, we had to go > get the document. due to the very crappy > nature of ext2, it was not feasable to store > the documents individually. they had to > be bundled up in chunks of about 1gb. > > being young and easily distracted by shiny > bits, i decided to use mmap. A very bad mistake for streaming data. > as to using mmap for memory management, > that confuses me. it's like saying the os should > provide linked lists, because developers can't do > it. isn't part of the argument here that applications > know better how to manage buffers? > In certain cases, the OS memory management for pages can be exploited and it can do a good job for you. Not in all cases of course. ron