[Aptitude-devel] Review of 298143

Daniel Burrows dburrows at google.com
Thu Aug 12 19:36:20 UTC 2010


On Thu, Aug 12, 2010 at 9:01 AM, Piotr Galiszewski <piotr at galiszewski.pl> wrote
> 4) searching by all versions:
>
> a) simple (0.6.5.4):
> 0.09 (first search took 0.12 and each later about 0.035)
>
> b) aptitude patterns (?any-version(0.6.5.4))
> 0.09

  That isn't identical to what you had above.  You probably just want this:

    ?version(0\.6\.5\.4)

> As expected search results were always the same ;)

  That does surprise me -- the ?any-version shouldn't behave like your
version search.

> For later searches
> lazy loading gives some improvements, but first search is always
> longer. I do not know if manual creating of patterns will give some
> visible improvements.
>
> To sum up, On my machine lazy loading gives some improvements, but the
> numbers are always small, so improvements is not big (and there is
> always penalty during first search). How it will work on slower
> machines I have no idea (my old computer died 6 months ago)
>
> I am looking forward to read your opinions if it is worth to use
> custom searching in this case (probably no). Now I am coming back to
> normal code rewriting ;)

  Given your time constraints, I don't think it's worth it for you to
spend any time making this faster.

  Daniel



More information about the Aptitude-devel mailing list