[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Terribly slow startup in 0.7.2



  OK, I've been over the diff of depcache.cc between 0.6 and 0.7, and I
see two possibilities.

    Possibility (1): it's the new mark-and-sweep code.  aptitude runs
                     its startup code inside an action group to avoid
		     precisely this problem, but obviously this doesn't
		     suppress apt's garbage collector.

    Possibility (2): it's the code to detect "new" recommendations.
                     aptitude has similar code in the dependency
		     resolver, and I added support for caching which
		     recommendations were "new" because it was spending
		     an excessive amount of time computing this
		     function.


  I think the issue is probably (1).  When I get a chance I'll try to
merge in my support for the apt automark branch from 2 years ago -- have
the API or the semantics changed since then?

    Thanks,
  Daniel



Reply to: