From: Junio C Hamano <hidden> Date: 2016-06-15 22:42:20
I like this, but like the "every second or every percent
whichever comes first" unpack-objects does even better. How
about something like this on top of your patch?
---
From: Nicolas Pitre <hidden> Date: 2016-06-15 22:42:20
On Wed, 22 Feb 2006, Junio C Hamano wrote:
I like this, but like the "every second or every percent
whichever comes first" unpack-objects does even better. How
about something like this on top of your patch?
Well... my concern is (if I'm right) that this status is generated
remotely and sent over the network when performing a fetch. The "every
percent" might in this case generate quite some significant overhead if
the pack is small.
Also (personal opinion) such progress numbers are harder to read when
they change too fast.
Nicolas
I like this, but like the "every second or every percent
whichever comes first" unpack-objects does even better. How
about something like this on top of your patch?
Well... my concern is (if I'm right) that this status is generated
remotely and sent over the network when performing a fetch. The "every
percent" might in this case generate quite some significant overhead if
the pack is small.
Well, my thinking behind the original unpack-objects behaviour was that we
don't really care about the max 100 extra packets.
The days of 150 baud line printers are gone. I cannot imagine any valid
situation where you can't send a hundred small packets to update the
screen.. And it did make a nice visual difference.
(In fact, over a network, if the line really is slow, you'll find that
Nagle will fix things, and you'll just see one extra - but obviously
slightly bigger - packet).
Linus
From: Andreas Ericsson <hidden> Date: 2016-06-15 22:42:20
Nicolas Pitre wrote:
On Wed, 22 Feb 2006, Junio C Hamano wrote:
quoted
I like this, but like the "every second or every percent
whichever comes first" unpack-objects does even better. How
about something like this on top of your patch?
Well... my concern is (if I'm right) that this status is generated
remotely and sent over the network when performing a fetch. The "every
percent" might in this case generate quite some significant overhead if
the pack is small.
But if the pack is small it won't matter. It's when it's big we want to
know about it (and then the each-percent method is better, really).
Also (personal opinion) such progress numbers are harder to read when
they change too fast.
I don't know about the rest of the world, but when I see numbers
counting up with a percent-sign behind them I do some mental math to see
how many brain-ticks go between each increment and then multiply with
100 to see if I need to get a beer while waiting. I don't really care
what number it shows if it flashes too fast to read.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
From: Nicolas Pitre <hidden> Date: 2016-06-15 22:42:20
On Wed, 22 Feb 2006, Linus Torvalds wrote:
Well, my thinking behind the original unpack-objects behaviour was that we
don't really care about the max 100 extra packets.
Obviously, the "every percent" has at most 100 additional packets.
And if it updates too fast to be readable, that means it'll be over in a
snap anyway.
So I don't have any objections left.
Nicolas