$i = 0; was missing in your code. The second round *always* takes 1281 msecs here, very unusual for Windows! The first round varies a bit, but is always faster. I'm really surprised. I can confirm those results.
Code: Select all
$start = now("msecs");
while($i++ < 10000) {
if ("path_x" LikeI <curpath>) {
}
}
text 'Time <curpath>: ' . now("msecs") - $start . " msecs";
// Result = ~ 1234 msecs
$current = <curpath>;
$start = now("msecs");
$i = 0;
while($i++ < 10000) {
if ("path_x" LikeI $current) {
}
}
text 'Time $current: ' . now("msecs") - $start . " msecs";
// Result = 1281 msecs
XYplorer Beta Club