Re: [Yum-devel] [Kitchen-devel] str_eq within yum (and kitchen)

2010-08-24 Thread Toshio Kuratomi
On Tue, Aug 24, 2010 at 06:28:06PM -0400, David Malcolm wrote: > Profiling of a Fedora 14 "yum install *" showed it spending 80 seconds > out of 274 within its implementation of "str_eq" (24 million calls), so > optimizing this seems worthwhile. > > One possibility is to hand-optimize this in C, o

Re: [Yum-devel] str_eq within yum (and kitchen)

2010-08-24 Thread David Malcolm
On Tue, 2010-08-24 at 18:28 -0400, David Malcolm wrote: > Profiling of a Fedora 14 "yum install *" showed it spending 80 seconds > out of 274 within its implementation of "str_eq" (24 million calls), so > optimizing this seems worthwhile. (replying to self, sorry) I added some instrumentation to

Re: [Yum-devel] str_eq within yum (and kitchen)

2010-08-24 Thread Jon Masters
On Tue, 2010-08-24 at 18:28 -0400, David Malcolm wrote: > [1] https://fedorahosted.org/kitchen/ btw, that sounds like a really useful project. Jon. ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-d

[Yum-devel] str_eq within yum (and kitchen)

2010-08-24 Thread David Malcolm
Profiling of a Fedora 14 "yum install *" showed it spending 80 seconds out of 274 within its implementation of "str_eq" (24 million calls), so optimizing this seems worthwhile. One possibility is to hand-optimize this in C, or use Cython. As a first step, attached are some more selftests for kitc

Re: [Yum-devel] [PATCH] - when we're looking at potential providers - if we have a newer version of the same pkg installed score down the pkg in the same way we score down an obsoleted pkg. seems to f

2010-08-24 Thread seth vidal
On Tue, 2010-08-24 at 17:10 -0400, Seth Vidal wrote: > --- > yum/depsolve.py |4 > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/yum/depsolve.py b/yum/depsolve.py > index e9b3fa7..886cca8 100644 > --- a/yum/depsolve.py > +++ b/yum/depsolve.py > @@ -1195,6 +1195,10 @@

[Yum-devel] [PATCH] - when we're looking at potential providers - if we have a newer version of the same pkg installed score down the pkg in the same way we score down an obsoleted pkg. seems to fix:

2010-08-24 Thread Seth Vidal
--- yum/depsolve.py |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/yum/depsolve.py b/yum/depsolve.py index e9b3fa7..886cca8 100644 --- a/yum/depsolve.py +++ b/yum/depsolve.py @@ -1195,6 +1195,10 @@ class Depsolve(object): # We get here from bestPa