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

Performance and correctness problems in Python bindings

2009-04-14 Thread Bill Fenner
Last summer, I posted a patch for the Python bindings at https://sourceforge.net/tracker/index.php?func=detail&aid=2074817&group_id=12694&atid=112694 This fixes the problem that it's impossible to use the Python bindings to fetch an object with more than one sub-ID in its INDEX, e.g., it works fo