bands slow, especially with filters
|Opened on:||Monday, December 16, 2019 - 02:58|
|Last modified:||Tuesday, December 17, 2019 - 23:42|
As discussed recently, bands seem very slow. Filters slow things down even more.
The recipe bandit 1.0 demonstrates the issue. It adds a zero-length spaceband to each segment, while varying the unto and filter settings. The whole process repeats a given number of times. (Thanks to Paul Dunn for the base code used in this experiment.)
The table below shows results for puzzle 1773. The results will be easier to see if you copy the lines below and paste them into a spreadsheet.
The results show that leaving both undo and filters enabled is the slowest option, averaging over 48 seconds to add 90 bands.
Turning off both undo and filters is fastest, at just over 19 seconds.
Leaving undo enabled while disabling filters slows things to 22 seconds.
Disabling undo while leaving filters enabled is second slowest, at over 46 seconds.
case disable undo disable filters total time runs mean time 1 false false 1450 30 48.333333333333 2 true true 571 30 19.033333333333 3 false true 671 30 22.366666666667 4 true false 1382 30 46.066666666667
On puzzle 1772, which has only a single "Residue Count" filter, the results aren't as clear, but in limited testing, there still seems to be slight advantage to disabling both undo and filters. (More results on 1772 later.)