From: Nicolas Pitre <nico@cam.org>
To: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH WIP 0/4] Special code path for large blobs
Date: Thu, 28 May 2009 14:03:40 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.0905281349320.3906@xanadu.home> (raw)
In-Reply-To: <1243488550-15357-1-git-send-email-pclouds@gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1179 bytes --]
On Thu, 28 May 2009, Nguyễn Thái Ngọc Duy wrote:
> Thread "Problem with large files on different OSes" reminds me this.
> This series is in my repository for quite some time. It addresses
> adding/checking out large blobs as long as:
>
> - no conversion will be done
> - blobs are loose (in checkout case)
>
> Together with a patch that prevents large blobs from being packed
> (something like Dana How sent long ago), and a modification of "lazy
> clone/remote alternatives" patch to avoid packing large blobs again
> for sending over network, I think it should make git possible for
> large files.
>
> Just something to play.
I think this is a good start.
However, like I said previously, I'd encapsulate large blobs in a pack
right away instead of storing them as loose objects. The reason is that
you can effortlessly repack/fetch/push them afterwards by simply
triggering the pack data reuse code path for them. Extracting large and
undeltified blobs from a pack is just as easy as from a loose object.
To accomplish that, you only need to copy write_pack_file() from
builtin-pack-objects.c and strip it to the bone with only one object to
write.
Nicolas
next prev parent reply other threads:[~2009-05-28 18:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 5:29 [PATCH WIP 0/4] Special code path for large blobs Nguyễn Thái Ngọc Duy
2009-05-28 5:29 ` [PATCH WIP 1/4] convert.c: refactor in order to skip conversion early without looking into file content Nguyễn Thái Ngọc Duy
2009-05-28 5:29 ` [PATCH WIP 2/4] sha1_file.c: add streaming interface for reading blobs Nguyễn Thái Ngọc Duy
2009-05-28 5:29 ` [PATCH WIP 3/4] write_entry: use streaming interface for checkout large files Nguyễn Thái Ngọc Duy
2009-05-28 5:29 ` [PATCH WIP 4/4] index_fd: support indexing " Nguyễn Thái Ngọc Duy
2009-05-28 18:03 ` Nicolas Pitre [this message]
2009-06-02 4:46 ` [PATCH WIP 0/4] Special code path for large blobs Nguyen Thai Ngoc Duy
2009-06-02 14:45 ` Shawn O. Pearce
2009-06-02 17:22 ` Nicolas Pitre
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=alpine.LFD.2.00.0905281349320.3906@xanadu.home \
--to=nico@cam.org \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/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).