[Yum-devel] metadata parser in C
skvidal at linux.duke.edu
Wed May 10 14:39:02 UTC 2006
On Wed, 2006-05-10 at 10:18 -0400, Konstantin Ryabitsev wrote:
> seth vidal wrote:
> > Also thanks for working on this, it looks cool. I'm going to give you
> > some initial thoughts and since I've just jumped out of the shower some
> > extended thoughts, too. So take all of it inclusively and we'll see what
> > comes out, okay?
> Since metadata parsing is in no way related to the rest of yum's
> operation (yum works with post-parsed databases), I think this is a very
> sane thing to do. The slowdown in case of python-cElementTree was the
> fact that we had to do the c-string -> python-string -> c-string
> hoop-jumping (even worse in case of libxml, since then it also insisted
> on converting unicode objects into strings). If we never leave C to
> parse and store metadata, the speed-ups should be tremendous, which is
> what has been demonstrated.
> I don't think we should worry about yum having bits in C, especially
> since it only concerns metadata parsing. It's a visible enough project
> these days that finding a maintainer for this (probably very small)
> piece of code shouldn't be in the least problematic.
in addition to post-shower thoughts it occurred to me to do:
put the c-based parser into a separate package so that the c code can be
isolated there and the base yum pkg doesn't have to stop being noarch.
More information about the Yum-devel