7-billion-humans-solutions icon indicating copy to clipboard operation
7-billion-humans-solutions copied to clipboard

Which speed solution is better?

Open ghost opened this issue 6 years ago • 6 comments

the one that is a few ms faster (but the timer shows the same amount of seconds), but a few commands longer or the one that is a few ms slower, but a few commands shorter?

ghost avatar Nov 10 '18 23:11 ghost

I'd probably lean towards a few commands shorter just because it's a noticeable difference in the game. Anyone else have an opinion on this?

hingston avatar Feb 05 '19 01:02 hingston

Sure, however continuously improving solution by a few ms can eventually shave off a whole second (that's basically what happened with defrag disordered solution). Also it's literally a SPEED solution, so even a small speed improvement matters in my opinion.

ghost avatar Mar 08 '19 21:03 ghost

The main problem I see with this is, how can you easily, and preferably automatically, tell the exact time in ms? Also, I think all solutions would need to be reevaluated and show the exact time in the table.

NeunEinser avatar Mar 09 '19 12:03 NeunEinser

there are a few commands that take 0.016s (for this game it's an indivisible time unit). the more of these you can insert at the start of the solution before the timer starts showing that it became slower - the faster your solution is.

ghost avatar Mar 09 '19 13:03 ghost

Ah, that's actually a clever way of measuring this. I imagine, setting a mem value to some number would create that kind of delay?

NeunEinser avatar Mar 09 '19 16:03 NeunEinser

yes, if myitem == myitem and telling to memory slot when it's empty also works.

ghost avatar Mar 09 '19 20:03 ghost