too slow -- replaceOccurrencesOfString: withString: options: range:

2008-07-14 Thread David Wetzel
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 cla

Re: too slow -- replaceOccurrencesOfString: withString: options: range:

2008-07-14 Thread David Wetzel
Am 15.07.2008 um 00:04 schrieb David Wetzel <[EMAIL PROTECTED]> NEWbaseStringByConvertingToHTML took 0.031764 sec stringByEscapingHTMLAttributeValue took 0.072553 sec Morning, I should sleep more, but still, there is room to make it faster. Maybe in rangeOfString if one is looking for many sm

Re: too slow -- replaceOccurrencesOfString: withString: options: range:

2008-07-15 Thread Richard Frith-Macdonald
On 15 Jul 2008, at 07:24, David Wetzel wrote: Am 15.07.2008 um 00:04 schrieb David Wetzel <[EMAIL PROTECTED]> NEWbaseStringByConvertingToHTML took 0.031764 sec stringByEscapingHTMLAttributeValue took 0.072553 sec Morning, I should sleep more, but still, there is room to make it faster. S