On Sat 2008-12-27 21:43:53, Enrico Weigelt wrote:
> * Enrico Weigelt <weig...@metux.de> schrieb:
> > 
> > Hi folks,
> > 
> > 
> > I really wonder whether the mmap() stuff is still needed at all.
> > It doesnt seem to be really used anywhere.
> Ups, didn't look hard enough (just scanned the vfs subdir) ;-O
> Okay, there're mainly two mmap()-using places: 
> a) cmd.c: compare_files() - it uses the mmap() call directly 
>    (w/o going over mcvfs), and it seems to work on local files 
>    only. wouldn't it make sense to let it run via mcvfs ? 
> b) view.c: it tries to mmap() in the file, obviously to let the
>    kernel do all the loading. 
>    BUT: do we *really* want mmap() here, or just some "get me
>    that file into memory"()-call (same in cmd.c) ?

I believe the idea is to be able to view parts of huge file without
loading them to RAM first. (for really big files, they may not even
fit in RAM.)

(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
Mc-devel mailing list

Reply via email to