Re: [PATCH v2 2/3] fast-export: improve speed by skipping blobs

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v2 2/3] fast-export: improve speed by skipping blobs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:09

Jeff King [off-list ref] writes:
So yes, I think this is an obviously correct optimization. Thanks for
clarifying, and sorry to be so slow.
No need to be sorry.  It just shows that the log message could have
been more helpful.

Here is what I tentatively queued.

commit 83582e91d22c66413b291d4d6d45bbeafddc2af9
Author: Felipe Contreras [off-list ref]
Date:   Sun May 5 17:38:53 2013 -0500

    fast-export: do not parse non-commit objects while reading marks file
    
    We read from the marks file and keep only marked commits, but in
    order to find the type of object, we are parsing the whole thing,
    which is slow, specially in big repositories with lots of big files.
    
    There's no need for that, we can query the object information with
    sha1_object_info().
    
    Before this, loading the objects of a fresh emacs import, with 260598
    blobs took 14 minutes, after this patch, it takes 3 seconds.
    
    This is the way fast-import does it. Also die if the object is not
    found (like fast-import).
    
    Signed-off-by: Felipe Contreras [off-list ref]
    Signed-off-by: Junio C Hamano [off-list ref]

Re: [PATCH v2 2/3] fast-export: improve speed by skipping blobs

From: Jeff King <hidden>
Date: 2016-06-15 22:57:09

On Mon, May 06, 2013 at 10:17:41AM -0700, Junio C Hamano wrote:
Jeff King [off-list ref] writes:
quoted
So yes, I think this is an obviously correct optimization. Thanks for
clarifying, and sorry to be so slow.
No need to be sorry.  It just shows that the log message could have
been more helpful.

Here is what I tentatively queued.
[...]
Yeah, that is much for to understand (to me, at least).

Thanks.

-Peff

Re: [PATCH v2 2/3] fast-export: improve speed by skipping blobs

From: Jeff King <hidden>
Date: 2016-06-15 22:57:09

On Mon, May 06, 2013 at 01:19:35PM -0400, Jeff King wrote:
quoted
Here is what I tentatively queued.
[...]
Yeah, that is much for to understand (to me, at least).
Ugh. That was supposed to be "much easier to understand". Perhaps I will
learn to type one day.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help