[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
too slow -- replaceOccurrencesOfString: withString: options: range:
From: |
David Wetzel |
Subject: |
too slow -- replaceOccurrencesOfString: withString: options: range: |
Date: |
Tue, 15 Jul 2008 00:04:16 +0200 |
Hi,
replaceOccurrencesOfString: withString: options: range:
works, but is quite slow.
There is a lot of range checking, finding out which classes are involved etc.
That is deathly if you do this in a loop.
I wanted to clean out some low-level code in GSWeb, but it seems like the base
string classes are just too
slow:
NEWbaseStringByConvertingToHTML took 0.031764 sec
stringByEscapingHTMLAttributeValue took 0.072553 sec
Later,
David Wetzel
- too slow -- replaceOccurrencesOfString: withString: options: range:,
David Wetzel <=