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

Re: Git exhausts memory.

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 5, 2011, 22:16 UTC
Message-ID
<7vmxk4l4yb.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.2.00.1104051655310.28032@xanadu.home>
Nicolas Pitre <nico@fluxnic.net> writes:
Show 8 quoted lines
>> > This is only implemented inside of fast-import. pack-objects does not
>> > honor this variable.
>> 
>> Do you mean perhaps we should?
>
> Yes.
>
> Acked-by: Nicolas Pitre <nico@fluxnic.net>

I actually was somewhat unhappy to use uintmax_t type in the public header for some reason I cannot quite explain (perhaps religious), and was hoping somebody with more sanity than myself would stop me or show me a better way.

Show 12 quoted lines
>> diff --git a/cache.h b/cache.h
>> index 2674f4c..316d85f 100644
>> --- a/cache.h
>> +++ b/cache.h
>> @@ -573,6 +573,7 @@ extern int core_compression_seen;
>>  extern size_t packed_git_window_size;
>>  extern size_t packed_git_limit;
>>  extern size_t delta_base_cache_limit;
>> +extern uintmax_t big_file_threshold;
>>  extern int read_replace_refs;
>>  extern int fsync_object_files;
>>  extern int core_preload_index;
Previous: Nicolas PitreNext: Shawn Pearce
Message 15 of 19 in “Git exhausts memory.”
  1. Alif WahidApr 2, 2011
  2. Nicolas PitreApr 2, 2011
  3. Alif WahidApr 3, 2011
  4. Nicolas PitreApr 3, 2011
  5. Alif WahidApr 4, 2011
  6. Nguyen Thai Ngoc DuyApr 4, 2011
  7. David FriesApr 5, 2011
  8. Alif WahidApr 5, 2011
  9. Nguyen Thai Ngoc DuyApr 5, 2011
  10. Alif WahidApr 5, 2011
  11. Holger HellmuthApr 5, 2011
  12. Shawn PearceApr 5, 2011
  13. Junio C HamanoApr 5, 2011
  14. Nicolas PitreApr 5, 2011
  15. Junio C HamanoApr 5, 2011
  16. Shawn PearceApr 5, 2011
  17. Nicolas PitreApr 6, 2011
  18. Jay SoffianApr 6, 2011
  19. Junio C HamanoApr 6, 2011

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.