05.06.2016, 08:52
(
Последний раз редактировалось YourShadow; 08.06.2016 в 10:13.
)
Quote:
It isn't fair. If there are 100 commands, you will first end up checking 100/2th command, i.e: 50th command.
You have to speed test by having two loops, the outer loop being the main iteration loop and the inner loop simulating a call to every command (first to the last). I haven't checked the source yet but I believe that the engine is doing a binary search. |