From: Linus Torvalds <torvalds@linux-foundation.org>
To: Richard Hipp <drh@sqlite.org>
Cc: Git List Mailing <git@vger.kernel.org>
Subject: Re: git-fast-import yields huge packfile
Date: Sat, 16 Mar 2019 14:04:33 -0700 [thread overview]
Message-ID: <CAADWXX81agAg1B9+FM5c4JsWzANKochNTcv2ShsRzAsZpHAVWw@mail.gmail.com> (raw)
In-Reply-To: <CALwJ=MzrqPUNw=jc0NRtaJaJG+ErXNb577JNSN66GiGY4UFtRw@mail.gmail.com>
On Sat, Mar 16, 2019 at 1:31 PM Richard Hipp <drh@sqlite.org> wrote:
>
> Maybe I'm doing something wrong with the fast-import stream that is
> defeating Git's attempts at delta compression....
fast-import doesn't do fancy delta compression becayse that would
defeat the "fast" part of fast-import.
Just do a git repack after the import to do the proper repacking. I
get a 41Mb packfile when I try that on your repo.
So a simple
git repack -adf
should fix things up for you (the "-f" to make sure it doesn't try to
re-use things from the silly bad pack). Alternatively, use "git gc
--aggressive", which will do that forced repack too.
Linus
next prev parent reply other threads:[~2019-03-16 21:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-16 20:31 git-fast-import yields huge packfile Richard Hipp
2019-03-16 21:04 ` Linus Torvalds [this message]
2019-03-16 22:12 ` Mike Hommey
2019-03-16 23:22 ` Richard Hipp
2019-03-21 14:09 ` Johannes Schindelin
2019-03-21 14:23 ` Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAADWXX81agAg1B9+FM5c4JsWzANKochNTcv2ShsRzAsZpHAVWw@mail.gmail.com \
--to=torvalds@linux-foundation.org \
--cc=drh@sqlite.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).