Hello,
is it known (or even documented?) if an expression such as
x = %scan(str: %subst(buffer: 1: toLen));
(where buffer is a 'large' character field, 'str' is a 'short', usually single character, string and 'toLen' is an integer)
will be 'optimized' in the sense that it will simply search for characters in the first 'toLen' positions of 'buffer' or if it will be relatively inefficient in the sense that it will first extract the substring, possibly copying it somewhere, and then search the resulting substring?
BTW, I need to run this on V7R2 for the forseeable future.
Thanks in advance
John Lewis
is it known (or even documented?) if an expression such as
x = %scan(str: %subst(buffer: 1: toLen));
(where buffer is a 'large' character field, 'str' is a 'short', usually single character, string and 'toLen' is an integer)
will be 'optimized' in the sense that it will simply search for characters in the first 'toLen' positions of 'buffer' or if it will be relatively inefficient in the sense that it will first extract the substring, possibly copying it somewhere, and then search the resulting substring?
BTW, I need to run this on V7R2 for the forseeable future.
Thanks in advance
John Lewis
Comment