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

Re: [PATCH 2/5] index-helper: new daemon for caching index and related stuff

From
David Turner <dturner@twopensource.com>
Date
Jun 10, 2014, 18:44 UTC
Message-ID
<1402425859.18134.207.camel@stross>
In-Reply-To
<1402406665-27988-3-git-send-email-pclouds@gmail.com>
On Tue, 2014-06-10 at 20:24 +0700, Nguyễn Thái Ngọc Duy wrote:
> +	loop(sb.buf, 600);
...
> +	if (st->st_mtime + 600 < time(NULL))
s/600/INDEX_HELPER_TIMEOUT/ or something.
> +		return;	  /* don't try to read from stale .pid file */
> +
> +	fd = open(git_path("read-cache--daemon.pid"), O_RDONLY);

should be index-helper.pid (actually, there are a few other instances of this as well); maybe make it a constant.

Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 4 of 7 in “Speed up cache loading time”
  1. 0/5 Speed up cache loading timeNguyễn Thái Ngọc Duy, Jun 10, 2014
  2. 1/5 read-cache: allow to keep mmap'd memory after readingNguyễn Thái Ngọc Duy, Jun 10, 2014
  3. 2/5 index-helper: new daemon for caching index and related stuffNguyễn Thái Ngọc Duy, Jun 10, 2014
  4. David TurnerJun 10, 2014
  5. 3/5 index-helper: add Windows supportNguyễn Thái Ngọc Duy, Jun 10, 2014
  6. 4/5 daemonize(): set a flag before exiting the main processNguyễn Thái Ngọc Duy, Jun 10, 2014
  7. 5/5 index-helper: add --detachNguyễn Thái Ngọc Duy, Jun 10, 2014

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.