in reply to Re: Improve processing time for string substitutions
in thread Improve processing time for string substitutions

It's unescaped HTML entities:

I want to convert the entities like &ge, &le, into hexa values &#x2265, &#x2264.

But, I'll also point out that the actual entity should end in a semicolon. (which prevents issues such as '∨' matching 'ª')

Replies are listed 'Best First'.
Re^3: Improve processing time for string substitutions
by Krambambuli (Curate) on Apr 16, 2007 at 21:16 UTC
    Well then, it's something like below that might fit.

    The results are interesting:
    Benchmark: timing 1000 iterations of regexish, with_splitting... regexish: 59 wallclock secs (58.16 usr + 0.02 sys = 58.18 CPU) @ 17 +.19/s (n=1000) with_splitting: 0 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU) +@ 50000.00/s (n=1000) (warning: too few iterations for a reliable count)