From: Andreas Ericsson <ae@op5.se>
To: git@vger.kernel.org
Subject: Re: [PATCH] Avoid using dc in git-count-objects
Date: Wed, 26 Oct 2005 11:23:17 +0200 [thread overview]
Message-ID: <435F4B05.4010702@op5.se> (raw)
In-Reply-To: <7vd5ltcf05.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
>
>>Using dc is not really necessary, since expr understands summing 32 bit
>>signed integers. Which means that git-count-objects will now fail when 2
>>GB of unpacked objects have accumulated.
>
>
> Sorry, but I am not very happy about this patch. "local"
> bashism aside, doesn't this spawn expr for every unpacked
> object?
>
I'd be more worried about the fact that the kilobytes count is way off
as it is. du (at least from coreutils-5.2.1) rounds up to nearest
kilobyte *for each file* when printing kb-count.
Try these:
du -skc .git/objects/?? | grep total
du -skc .git/objects/??/* | grep total
du -sbc .git/objects/?? | grep total
du -sbc .git/objects/??/* | grep total
which will all yield different values.
I have no idea which of those values people expect to get back, so it
might be correct right now, although I doubt it.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2005-10-26 9:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 23:22 [PATCH] Avoid using dc in git-count-objects Johannes Schindelin
2005-10-26 0:12 ` Junio C Hamano
2005-10-26 8:33 ` Johannes Schindelin
2005-10-26 8:36 ` Petr Baudis
2005-10-27 8:50 ` Matthias Urlichs
2005-10-27 9:56 ` Johannes Schindelin
2005-10-27 15:12 ` Linus Torvalds
2005-10-27 18:00 ` Junio C Hamano
2005-10-28 3:20 ` Herbert Xu
2005-10-28 4:14 ` H. Peter Anvin
2005-10-28 4:32 ` Herbert Xu
2005-10-28 4:34 ` H. Peter Anvin
2005-10-28 4:58 ` Herbert Xu
2005-10-28 5:22 ` H. Peter Anvin
2005-10-26 8:58 ` Johannes Schindelin
2005-10-26 9:23 ` Andreas Ericsson [this message]
2005-10-26 14:44 ` Johannes Schindelin
2005-10-26 14:55 ` Andreas Ericsson
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=435F4B05.4010702@op5.se \
--to=ae@op5.se \
--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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.