On Thursday 21 July 2005 10:06 am, Sami Liedes wrote:
> I profiled aptitude a bit and found out that most of its slowness(*)
> is due to apt (which shouldn't be that much of a surprise, aptitude
> being mostly only a frontend for apt). Here's a patch that speeds up
> some things quite a bit, especially with some optimizations to
> aptitude too (which I will submit separately soon).
Thanks for looking into this. I have a warning, though: if you're working
off the stable branch of aptitude (i.e., 0.2.15.9), your profiling is
probably not that useful, particularly because it looks like a lot of the
wasted cycles are going into string operations. A lot of the string handling
has been rewritten to be even less efficient :-), especially in the latest
version (which does a lot of extra processing to handle wide characters). On
the other hand, I have been switching foo(string) to foo(const string &)
incrementally (as I come across the former style of prototype). Basically,
you want to be working off of current SVN:
svn://svn.debian.org/svn/aptitude/branches/aptitude-0.3/aptitude
Of course, it might well be the case that your conclusions are correct
anyway, but it would probably be more useful if you checked against the
current branch.
Thanks,
Daniel
--
/------------------- Daniel Burrows <dburrows@debian.org> ------------------\
| Apostrophes are not a warning that a |
| word is about to end in an "s". |
\------------ Got APT? -- Debian GNU/Linux http://www.debian.org -----------/
Attachment:
pgppJNSPmfpG_.pgp
Description: PGP signature