monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] [PATCH] pre-cache database file to improve response


From: Johan Bolmsjö
Subject: Re: [Monotone-devel] [PATCH] pre-cache database file to improve response time
Date: Mon, 20 Mar 2006 21:57:48 +0100
User-agent: Mozilla Thunderbird 1.0.6 (X11/20051013)

Joe Wilson wrote:

--- Ulrich Drepper <address@hidden> wrote:
Joe Wilson wrote:
Modern OSes have support for hints to the OS.  For mmap() calls on
Linux, there is the MAP_POPULATE flag.  For all file operations, there
is posix_fadvise().

SQLite does not use mmap() - just basic read()s and write()s for
portability. Can the system calls you mention be made to work
with Monotone without altering SQLite's library code?
(Does Windows natively support mmap()?)
Hello,

Slightly OT, but in answer to the last question.
There is mmap functionality in windows, see:

CreateFile
CreateFileMapping,
MapViewOfFile,
UnmapViewOfFile
CloseHandle

/Johan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]