Skip to content

[cmds] Speed up the sl choo choo train for slow systems#1720

Merged
ghaerr merged 1 commit intomasterfrom
train
Sep 13, 2023
Merged

[cmds] Speed up the sl choo choo train for slow systems#1720
ghaerr merged 1 commit intomasterfrom
train

Conversation

@ghaerr
Copy link
Owner

@ghaerr ghaerr commented Sep 13, 2023

Removes ANSI cursor positioning per character output - runs 40x faster, 0.08 seconds on QEMU!

Adds -s option (sl -s) to run in older "slow" mode, useful for testing system performance (and actually seeing the train on QEMU).

Doesn't output ANSI DSR sequence if not a terminal, fixing problems with sl > file.

@ghaerr ghaerr mentioned this pull request Sep 13, 2023
@ghaerr ghaerr merged commit de8909a into master Sep 13, 2023
@ghaerr ghaerr deleted the train branch September 13, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant