From: Luben Tuikov <ltuikov@yahoo.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] gitweb: blame: All rows have title; print 8 SP when no leading commit-8
Date: Wed, 4 Oct 2006 18:29:48 -0700 (PDT) [thread overview]
Message-ID: <20061005012948.6961.qmail@web31815.mail.mud.yahoo.com> (raw)
In-Reply-To: <7vwt7fimgs.fsf@assigned-by-dhcp.cox.net>
--- Junio C Hamano <junkio@cox.net> wrote:
> Its visuals might be Ok (I haven't had chance to try it), but I
> am a bit worried about the output size bloat. What kind of
> bloat factor are we talking about with this patch?
>
> - compared to the ancient original, which used to have commit-8
> on all lines, title * N lines for a file that is N lines
> long. A title ("$author, $date") is about say 30 bytes or so
> so for a file that is on average 25 bytes per line (this is
> from "wc *.c" in git.git repository ) we are now spewing out
> roughly twice the bytes back to the browser (25+8 vs 25+8+30)
>
> - compared to "only first in the block" version, assuming an
> average group size is 10 lines or so (this is a totally made
> up number) we are adding 72 extra bytes per 10 lines for
> commit-8 on top of the title bloat which would be 270 bytes
> per 10 lines. Again assuming 25-byte per line average, that
> is 250+8+30 vs 250+80+300 per 10 lines. Again, roughly
> twice.
>
> I am not sure what the numbers of the chunked one I just
> reverted from "next" compared to the original. For the same
> group size assumption, it added 8 bytes for commit-8 and 30
> bytes for title per the N lines, but we are assuming 10-line
> blocks, so 38 byte overhead per 10 lines, which is 250+80 vs
> 250+38, so it might have been actually slimmer than the
> original.
Yes, I agree with you. That patch adds bloat. I agree with
you, we can print the "title=" only for the leading commit-8,
as we currently do, and dispense with 8 SP. In effect this
patch 2/2 can be dropped.
Thanks,
Luben
prev parent reply other threads:[~2006-10-05 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-05 1:02 [PATCH 2/2] gitweb: blame: All rows have title; print 8 SP when no leading commit-8 Luben Tuikov
2006-10-05 1:24 ` Junio C Hamano
2006-10-05 1:29 ` Luben Tuikov [this message]
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=20061005012948.6961.qmail@web31815.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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