diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-10 11:57:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-10 12:03:08 +0300 |
commit | 78a211f249d3a70c4c3322abe616cded5a7e085b (patch) | |
tree | c1798319e193df78a4afa8aa0276d767152b5304 /speed-test | |
parent | 9b5ba7f23fe584f5807fea183070cee7594898e1 (diff) | |
download | ttystatus-78a211f249d3a70c4c3322abe616cded5a7e085b.tar.gz |
Improve speed when output is disabled
There's no point in trying to render if output isn't happening.
This brings benchmark time from about 26 seconds to 7.
Diffstat (limited to 'speed-test')
-rwxr-xr-x | speed-test | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -53,6 +53,7 @@ ts.format( '%ElapsedTime() %Counter(current-file) files found; ' '%ByteSize(uploaded-bytes) uploaded %Pathname(current-dir)') ts['uploaded-bytes'] = 0 +ts.disable() num_updates = 1000*1000 |