On Wed, Oct 26, 2022 at 4:33 PM Eric LK <tr...@lefauve.org> wrote:

> "John R. Hogerhuis" <jho...@pobox.com> wrote:
> > ?MID$(H$,A/16+1,1);MID$(H$,AMOD16+1,1);" ";
>
> It would be slightly faster with:
> ?MID$(H$,A\16+1,1);MID$(H$,(AAND15)+1,1);" ";
>
> 10000 iterations takes 5:43 vs 7:23 with your version (I tested on
> VirtualT, so it may not be 100% accurate but that should be a good
> estimate).
>
> The biggest difference is the integer division, which to be honest
> surprised me, since the variables are already integers.
>

Excellent! I actually wasn't aware of the integer division operator.

-- John.

Reply via email to