[Yum-devel] [Fwd: Re: [Dulug] Letter by ESR]

seth vidal skvidal at linux.duke.edu
Fri Feb 23 06:02:39 UTC 2007


On Thu, 2007-02-22 at 17:13 -0600, Michael_E_Brown at Dell.com wrote:
> I ran into this yesterday when writing my find_packages_for_my_machine
> script. If you use anything resembling a regexp, performance is crap.
> Use a provides search that just uses the builtin "like" function in
> sqlite, and it runs fine. I'm talking 5 minutes vs 4 seconds for my
> case.
> 
> Looking through the code, I thought it was funny that you repeated the
> select() so many times rather than just caching (in a string or array)
> and running regexp over the cache.

not anymore.

if you're bored, take a check out of cvs head and try out a search.

-sv





More information about the Yum-devel mailing list