P
Peter Judge
Guest
I"m trying to figure out the fastest way of checking whether an input string has at least one of another set of characters in it, in order to figure out whether I need to QUTOER() the input string or not. I tried a vanilla loop and a (slightly) optimised loop and a CASE TRUE statement. I get some (to me) surprising results). Note that the CASE is faster if there's work to do, but it's much slower if there's not, while the loops are more-or-less consistent. Any thoughts on why this is? And whether I can make this faster still? My test code is attached. (Please visit the site to view this file) input iters case loop 1 loop 2 value-quoted-and-aother-is-that-=-is-a-value-to-be-quoted 100000 545 275 277 isofafafanl 100000 567 217 213 -asf-wrw 100000 107 215 216 value quoted and aother is that = is a value to be quoted 100000 126 238 230 utf-8 100000 490 210 213 "valuequoted" 100000 144 205 207 spaced"value 100000 108 214 219 spaced value 100000 115 221 220
Continue reading...
Continue reading...