git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mmap implementation for mingw.

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Nov 21, 2008, 09:44 UTC
Message-ID
<492682E9.3030302@viscovery.net>
In-Reply-To
<gg5t5s$qc8$1@ger.gmane.org>
Please "reply to all" to keep the Cc list.
Vasyl' Vavrychuk schrieb:
>> Did you notice any differences with this? Or is this change just
>> because-we-can?
> Not yet.

This patch makes sense only if there is a noticable speed improvement. I doubt that the gain is measurable in the warm-cache case, but in the cold-cache case we can perhaps indeed save a number of disk accesses if whole pack files need not be slurped in (which the current mmap replacements do).

> Maybe write own getpagesize() based on GetSystemInfo()?

It's probably worth it (but only if mmap() makes sense at all). getpagesize() is used in the "sliding window" code to access pack files, and then the offset is non-zero and must be aligned properly. Make this a separate commit.

-- Hannes
Previous: Vasyl' VavrychukNext: Johannes Schindelin
Message 4 of 7 in “mmap implementation for mingw.”
  1. mmap implementation for mingw.Vasyl Vavrychuk, Nov 21, 2008
  2. Johannes SixtNov 21, 2008
  3. Vasyl' VavrychukNov 21, 2008
  4. Johannes SixtNov 21, 2008
  5. Johannes SchindelinNov 21, 2008
  6. Bryan DonlanNov 21, 2008
  7. Johannes SchindelinNov 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.