Re: Performance and correctness problems in Python bindings

2009-04-15 Thread Bill Fenner
We did some further analysis of the regexp. We found: 1. Replacing \w+(?:\-*\w+)+ with \w[-\w]+ turns 5 hours into a few ms. It still varies based on the length of the string, but it maxed out at 100ms for hrSWInstalledLastUpdateTime. 2. This regexp is different from the one in the perl module

Re: Performance and correctness problems in Python bindings

2009-04-15 Thread Wes Hardaker
> On Tue, 14 Apr 2009 08:00:05 -0700, Bill Fenner said: BF> Recently, we tracked down some pretty bad performance in our test BF> infrastructure to the same regexp. I find it odd that any regexp could possibly take that long trying to measure such a short string. I'd also file a bug in the