Declined Even faster screen output?

Mar 13, 2018
12
0
I really like the TCC screen output speed. However, I think it could be even faster with buffered output, for example:
1) Screen buffer is kept in ram
2) If a change occurs in the screen buffer, it's outputted to the visible window at current monitor refresh rate
3) scroll bars could reflect ram screen buffer (rather than actual visible screen)

Would that work? For example, if I record time of relative large directory listing with
timer /1 ON && dir /sa && timer /1 OFF
it takes 2,76 seconds on first run (filling the buffer and adjusting scroll bars) and ~0,8 seconds on subsequent runs. However, the same command with NUL piping (see below) takes only 0,11 seconds:
timer /1 ON && dir /sa >NUL && timer /1 OFF

comments or thoughts?
 
May 20, 2008
10,674
83
Syracuse, NY, USA
With TYPE, I can already fill an empty 9999-line console with 10000 80-character lines in ~.14 seconds.

[timer]timer type 10000lines.txt ...

... Timer 1 off: 20:04:22 Elapsed: 0:00:00.136[/code]

If it went any faster I wouldn't be able to read it! :-)
 
Mar 13, 2018
12
0
hmm.. i understand, though my testing shows the following (long directory listing with ~3000 files)

tcmd v25 tabbed TC window (1st run)
timer /1 on && dir /sa && timer /1 off
Timer 1 off: 8.09.02 Elapsed: 0.00.01,148

tcmd v25 tabbed TC window (2nd run)
timer /1 on && dir /sa && timer /1 off
=> Timer 1 off: 8.04.08 Elapsed: 0.00.00,726

tcmd v25 tabbed TC window
timer /1 on && dir /sa >&NUL && timer /1 off
Timer 1 off: 8.04.20 Elapsed: 0.00.00,116

tcc v25 (1st run)
timer /1 on && dir /sa && timer /1 off
Timer 1 off: 8.08.28 Elapsed: 0.00.02,535

tcc v25 (2nd run)
timer /1 on && dir /sa && timer /1 off
Timer 1 off: 8.07.37 Elapsed: 0.00.00,790

tcc v25
timer /1 on && dir /sa >&NUL && timer /1 off
Timer 1 off: 8.06.41 Elapsed: 0.00.00,118


So tcmd tabbed console window is definitely faster than tcc window on 1st run, but the subsequent runs (after screen buffer is filled) happen at the same speed. But avoiding console output completely reduces execution time by 75% (for both, tcmd tabbed console, and tcc)