Shawn Walker wrote:

> >>>publisher.py:
> >>>946: why do the import here?
> 
> [ ... ] considering we've gotten some cases down to sub one-second,
> avoiding any unnecessary module imports until we actually need them
> seems useful.

Perhaps, but I don't think moving a single module import is going to do
much.  If we find that having deferred module loading would be a win (when
we looked at it a year or so ago, it wasn't, but I think we do many more
imports now), then we should look at demand loading, like mercurial uses.

> In that case, yes, I could change it to that, but then I would have
> to call ServerCatalog.__parse_entry instead and I don't care for that
> form since it embeds the class name in the code.

Note that you could call self.__class__.__parse_entry() if there were no
other reason for __parse_entry() to be a classmethod.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to