Speeding up the history dialog

May 30, 2008

Is there some way to speed up the history dialog that is opened with PgUp/PgDn?

At the moment it's taking about 3-4 seconds for the unfiltered dialog to be usable after pressing PgUp, which is quite an annoying delay when you just want to quickly check the last commands.

I am using the maximum history size which gives these sizes:

C:\>history | wc
      19180      55890     501495

So only about 20K entries and 500KB in total size which should not be a problem for any computer these days.

Showing the history by using "history | view" or "history | list" takes less than a second, so seems it should be possible for the history dialog to be as fast or faster as well.

Currently using TCC 20, maybe this is faster in later versions?
May 30, 2008
I installed and measured how long it took to open the history dialog in TCC 27.

Could see no difference, still took 4 seconds for the dialog to be populated and possible to interact with.

The history code in general seems to be fast enough, it's just the dialog that is slow. Too bad, since it's my favorite way to interact with the history. Works well enough when you limit/filter the history before opening it, but the unfiltered case (20K history lines in the dialog) is painful.
May 30, 2008
The old-fashioned console popups are a lot faster. Try

OPTION //ConsolePopupWindows=Yes

Thanks for the suggestion, I did not know these were still around!

I see now that this option is documented, must have missed it before.

Yes, this dialog is much faster, there's no perceivable delay when opening it.
It misses a few features from the GUI dialog, but I hardly use those anyway so no big deal.

Only minor issue is that scrolling the console popups seems to be a bit slow. If you press and hold PgUp the dialog will continue scrolling for a long time after you release the key. But should not be a problem in actual use when you're not trying to see how the dialog works but just get stuff done.
May 30, 2008
That's odd. Here, scrolling stops instantly when I release Up, Dn, PgUp, or PgDn.

Maybe due to keyboard settings?

I have repeat delay set to shortest and repeat rate to fastest in the (old) Control Panel.
If I use the inverse settings the scrolling almost stops instantly.
Similar threads
Thread starter Title Forum Replies Date
vefatica Speeding up redirection to NUL? Support 32
J History file load hangs if file has complete garbage in it... Support 1
R History window wrong size, can't remember size change Support 12
T How to? retain command history across reboot? Support 6
D ParentDirectory does not update directory history Support 6
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
R Long commands retrieved from command history have blank line when wrapped Support 20
Joe Caverly @HISTORY issues Support 4
vefatica Deleting entries in the command history popup? Support 3
H History and TPipe Oddness Support 3
D History and control-C Support 1
G Console exe up / down history Support 8
D What does the file "..\Everything\Run history.csv" store? Support 5
rps Cmd history recall Support 4
David McClelland Command history loosing entries Support 18
R history features. Support 6
rps How to? Shralias and producing history.sav, alias.sav .. Support 6
M Ctrl-C when using command line history does nothing Support 2
S Debugger Bat file call history Support 9
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica ESC after recalling a command from history Support 3
T TCHelp executable history? Support 2
thorntonpg @blahblah added to history. Support 0
M Call History popup-window? Support 0
M HISTORY lessons ... Support 0
vefatica The help and IE's history Support 16
D Towards shared (dir-)history lists Support 3
vefatica Ctrl-Enter in command history window? Support 8
vefatica History recall turns off Quick-Edit Support 4
C history is getting deleted under unknown circumstances Support 9
R V19 - At startup, TCC save directory in the directory history list Support 2
T [TCC 18] Can't read nor write history Support 1
I Possible Bug: History /n Returns Nothing Support 3
jbanaszczyk Lost history Support 4
T history.sav Support 4
T How to? sort history in tcexit.btm Support 22
vefatica OT: Windows console history? Support 7
S directory history locks up TCC Support 3
R In addition to ALIAS /Z and FUNCTION /Z, HISTORY /Z? Support 1
E TCC History popups too small Support 0
C How to? Keeping all history lists Support 4
E Command History not showing on up arrow button Support 8
nikbackm HISTORY /R1 performance Support 3
T Selecting line from popup history without executing Support 8
A How to? Filter history list with unicode chars Support 0
vefatica WAD HISTORY /R, No closing quote? Support 10
vefatica WAD DO /S ... all dirs wind up in the history! Support 12
D Dir History file check Support 18
ehab aboudaya How to? Command Input history for each tab? Support 0

Similar threads