[Jprogramming] lazily look for label?
Raul Miller
rauldmiller at gmail.com
Thu Oct 13 03:42:28 HKT 2011
On Wed, Oct 12, 2011 at 3:32 PM, Ric Sherlock <tikkanz at gmail.com> wrote:
> It may be worth noting that the following is supported by special code
> and will stop after finding the first occurrence of label in string.
> label (E. i. 1:) string
> If string is long enough relative to the first 100 matches it may be
> worth iterating this operation 100 times, dropping to after the most
> recently found label each time.
That would require making 99 extra copies of a string which is too big
to be worth inspecting.
--
Raul
More information about the Programming
mailing list