curl: make --progress-bar update the line less frequently
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jul 2013 22:17:56 +0000 (00:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 Jul 2013 11:41:00 +0000 (13:41 +0200)
commit1691a31cab33ef1d6a186bd08e5f8cf7661e34c1
treee4cf1d89822270eacfe7dca38a88c4b7664bf961
parent9dedcbf9ec47b436a43c1e4744921b9e620e5fe2
curl: make --progress-bar update the line less frequently

Also, use memset() instead of a lame loop.

The previous logic that tried to avoid too many updates were very
ineffective for really fast transfers, as then it could easily end up
doing hundreds of updates per second that would make a significant
impact in transfer performance!

Bug: http://curl.haxx.se/mail/archive-2013-07/0031.html
Reported-by: Marc Doughty
src/tool_cb_prg.c
src/tool_cb_prg.h