Alex Tweedly didn't talk nonsense... Byte x [to y] of z is (truly) constant time if z is strictly a binary string.
tArray[x] is constant time if x is already a name - otherwise the string needs turned into a name. If x is coming from repeat for each key x - then it will already be a name. (Not sure if that helps!) Mark. Sent from my iPhone > On 6 Aug 2018, at 05:17, Alex Tweedly via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Earlier, Alex Tweedly said some nonsense like: > >> arrays are hashed - even if quickly, while byte chunks are constant time. >> >> So replace both uses of the array np with a byte chunk. >> ... >> >> Takes about 40% off the time. >> >> -- Alex. > Operator error ! > Forget what I said, it was wrong. > > I'll do the test more carefully and send a report later (whether it speeds > the test up or not). > > Alex > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode