Re: [PATCH 4/4] index-pack: Honor core.deltaBaseCacheLimit when resolving deltas

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Pitre
Date: Monday, July 14, 2008 - 8:05 pm

On Sun, 13 Jul 2008, Shawn O. Pearce wrote:


OK now I see what the 'base' pointer I previously dismissed is really 
needed for.

But this patch is suboptimal as it actually recreate the same memory 
pressure, to a lesser degree, this series is meant to solve.  If you do:


What you actually do is to read the delta data in memory, then recurse 
down to read more delta data, then recurse down to read the base which 
might be yet more delta data in memory, etc. etc.  Only when you reach 
the bottom of the stack will you start resolving all those deltas in 
memory.  Instead, the check for a delta object should be done first, and 
if so then recursion for the base object be performed _before_ reading 
the currently wanted object data.  This way you won't have more than one 
delta buffer at any time in memory.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git pull is slow, Stephan Hennig, (Thu Jul 10, 7:40 am)
Re: git pull is slow, Martin Langhoff, (Thu Jul 10, 8:13 am)
Re: git pull is slow, Petr Baudis, (Thu Jul 10, 8:28 am)
Re: git pull is slow, Johannes Sixt, (Thu Jul 10, 8:30 am)
Re: git pull is slow, Stephan Hennig, (Thu Jul 10, 8:45 am)
Re: git pull is slow, Petr Baudis, (Thu Jul 10, 8:50 am)
Re: git pull is slow, Stephan Hennig, (Thu Jul 10, 10:44 am)
Re: git pull is slow, Stephan Hennig, (Fri Jul 11, 5:25 am)
Re: git pull is slow, Stephan Hennig, (Fri Jul 11, 5:55 am)
Re: git pull is slow, Andreas Ericsson, (Fri Jul 11, 6:34 am)
Re: git pull is slow, Johannes Schindelin, (Fri Jul 11, 7:04 am)
Re: git pull is slow, Stephan Hennig, (Sat Jul 12, 5:32 am)
Re: git pull is slow, Johannes Schindelin, (Sat Jul 12, 10:05 am)
Re: git pull is slow, Shawn O. Pearce, (Sat Jul 12, 6:15 pm)
Re: git pull is slow, Stephan Hennig, (Sun Jul 13, 2:01 am)
Re: git pull is slow, Johannes Schindelin, (Sun Jul 13, 6:59 am)
Re: git pull is slow, Shawn O. Pearce, (Sun Jul 13, 3:11 pm)
[PATCH 0/4] Honor core.deltaBaseCacheLimit during index-pack, Shawn O. Pearce, (Sun Jul 13, 7:07 pm)
Re: [PATCH 3/4] index-pack: Track the object_entry that cr ..., Johannes Schindelin, (Mon Jul 14, 3:15 am)
Re: [PATCH 0/4] Honor core.deltaBaseCacheLimit during inde ..., Johannes Schindelin, (Mon Jul 14, 4:44 am)
Re: [PATCH 0/4] Honor core.deltaBaseCacheLimit during inde ..., Johannes Schindelin, (Mon Jul 14, 5:10 am)
Re: [PATCH 0/4] Honor core.deltaBaseCacheLimit during inde ..., Johannes Schindelin, (Mon Jul 14, 5:25 am)
Re: [PATCH 0/4] Honor core.deltaBaseCacheLimit during inde ..., Johannes Schindelin, (Mon Jul 14, 5:58 am)
Re: [PATCH 4/4] index-pack: Honor core.deltaBaseCacheLimit ..., Nicolas Pitre, (Mon Jul 14, 8:05 pm)