"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: gotadmin cleanup
To:
gameoftrees@openbsd.org
Date:
Mon, 5 Jul 2021 00:47:50 +0200

Download raw body.

Thread
Stefan Sperling:

> I chose to display the number of commits scanned because this allows the
> user to tell that we're making progress no matter what the result will be.
> 
> Failing that, if you don't like your time-based rate limiting, we could

I mean, I like the result.  I just don't like my code.

> rate-limit based on the number of times the callback is invoked.
> We could rate-limit calls to fflush(stdout) in the callback to, say,
> every 10 times it gets called (where 10 could be optimized according to
> benchmarks). And add a final fflush(stdout) call when the operation has
> completed.

That produces the same amount of output, just in bursts.
Imagine you are receiving 6.2 MB of output on a 9600 bps console...

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de