this implementation undo load-tests quite poorly
[?]
Jun 2, 2022, 11:29 PM
N6V6UJ3P4EAGM7OLPAW7VBCDNQQHCWIK7GAEDB53LTL6XPR5YUKACDependencies
- [2]
73OCE2MCafter much struggle, a brute-force undo - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text.lua at line 1171
endfunction test_zzz_undo_load_test()print('\n\nTesting a 10KB file')-- create a large list of lineslocal lines = {}-- 10k characters, hundred lines, 2k wordsfor i=1,100 dolocal line = ''for c=1,20 doline = line..'abcd 'endendLines = load_array(lines)-- perform 1000 mutationsprint('are the dots printing quickly and without any pauses?')for i=1,1000 doif i%50 == 0 thenApp.run_after_keychord('return')elseApp.run_after_textinput('a')endif i%10 == 0 thenio.write(i)io.write(' ')io.flush()endend