fuzzball
fuzzball copied to clipboard
Slowness when pasting commands with lots of MUF instructions
- Create a testprog command with this MUF:
@program testprog.muf
1 99999 d
i
$PRAGMA comment_recurse
: main ( s -- )
"Start." .tell 0 begin ++ dup 100000 > until "Done." .tell
;
.
c
q
@set testprog.muf=M3
- Run 'testprog' repeatedly by hand very fast (Like by pressing up for previous command) Notice how there's no problem.
- Now paste in a big line like this and watch it grind very slowly:
testprog
testprog
testprog
testprog
testprog
- Change it to do 100 iterations instead of 100000 and the problem goes away
Other users aren't disrupted while this is happening. @q
responds sluggishly as well.
I don't know why there's a difference between when I paste the commands and when I type them, even if I enter them very fast. Maybe all the commands in the paste are going out in the same TCP packet and getting processed all at once by the server? Maybe that's the difference?
Hopefully you're able to replicate this with your clients. I've tried two clients on my Linux console. tinyfugue 5 and just the raw telnet command, using GNOME terminal and Terminator terminal.