Re: [swift-corelibs-dev] NSRegularExpression performance

2017-06-29 Thread Philippe Hausler via swift-corelibs-dev
From a performance standpoint there are a few things going on here. 1) I would highly suggest to have a compiled NSRegularExpression stored once per pattern. From what I can tell this is true for the code listed? Regexes in general are not always best to re-create all the time since it has to ha

[swift-corelibs-dev] NSRegularExpression performance

2017-06-29 Thread Francois Green via swift-corelibs-dev
I’m uncertain if I’m using the correct forum, but I asked this question on the user list a few months back and no one responded. The NSRegularExpression library seems to perform poorly and I’m wondering if this is a performance bug or is it being used improperly? I’ve added links to two algori