From: Linus Torvalds <torvalds@linux-foundation.org>
To: Geert Bosch <bosch@adacore.com>
Cc: Nicolas Pitre <nico@cam.org>,
"Shawn O. Pearce" <spearce@spearce.org>,
Dana How <danahow@gmail.com>,
git@vger.kernel.org
Subject: Re: [RFC] Packing large repositories
Date: Sat, 31 Mar 2007 14:56:09 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0703311450030.6730@woody.linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0703311408560.6730@woody.linux-foundation.org>
On Sat, 31 Mar 2007, Linus Torvalds wrote:
>
> Ok, here's a slightly updated patch that does a few more iterations..
Don't use this. There's something wrong with it, and unlike the first
patch, it doesn't even pass all tests.
I think it's because I decided to try to use rounding in the newton thing
(which got things closer), but I suspect that rounding is broken - I think
it can round to "outside" the valid range. I didn't notice that with the
eclipse performance testing, probably because when you have enough objects
you'll never see it, but with smaller packs, being off-by-one means that
you can easily fall off the map ;)
So I'd like to re-iterate the note I had in that email:
> Not really meant to be applied, but it was interesting to play with
> this. NOTE! I don't think the math is really strictly correct (ie the
> scaling inside the loop), but it's "close enough" to not matter, and this
> really was meant to be an request-for-discussion.
IOW, it's very much a RFD patch. I suspect it is trivial to fix, but I
also suspect that unless somebody else decides that this is interesting,
I'll just leave the patch behind. None of the loads I tested really seemed
to be very sensitive to object lookup performance - the binary search
simply seems ot be "good enough", and usually the costs are in generating
patches ("git blame") or just diffing trees ("git log <pathspec>"), and
the object lookup doesn't seem to be critical enough to worry about.
If somebody can point to a load where we spend a noticeable amount of time
on doing index lookups, that would obviously change my opinion, but in the
meantime, I think this is better considered a case of "we _could_ do
something like this if it's ever an issue.."
Linus
next prev parent reply other threads:[~2007-03-31 21:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 7:05 [RFC] Packing large repositories Dana How
2007-03-28 16:53 ` Linus Torvalds
2007-03-30 6:23 ` Shawn O. Pearce
2007-03-30 13:01 ` Nicolas Pitre
2007-03-31 11:04 ` Geert Bosch
2007-03-31 18:36 ` Linus Torvalds
2007-03-31 19:02 ` Nicolas Pitre
2007-03-31 20:54 ` Junio C Hamano
2007-03-31 21:20 ` Linus Torvalds
2007-03-31 21:56 ` Linus Torvalds [this message]
2007-04-02 6:22 ` Geert Bosch
2007-04-03 5:39 ` Shawn O. Pearce
2007-03-31 18:51 ` Nicolas Pitre
2007-04-02 21:19 ` Dana How
2007-04-02 1:39 ` Sam Vilain
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0703311450030.6730@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=bosch@adacore.com \
--cc=danahow@gmail.com \
--cc=git@vger.kernel.org \
--cc=nico@cam.org \
--cc=spearce@spearce.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.
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 NNTP newsgroup(s).