cvs commit: src/usr.sbin/pkg_install/add perform.c src/usr.sbin/pkg_install/delete perform.c src/usr.sbin/pkg_install/lib lib.h match.c

Pav Lucistnik pav at
Fri Apr 11 08:26:07 UTC 2008

pav         2008-04-11 08:26:06 UTC

  FreeBSD src repository (doc,ports committer)

  Modified files:
    usr.sbin/pkg_install/add perform.c 
    usr.sbin/pkg_install/delete perform.c 
    usr.sbin/pkg_install/lib lib.h match.c 
  Optimize package registration/deregistration.  Previously, when looking up the
  package name for the origin of a dependency, all entries in /var/db/pkg were
  traversed for each dependency of added/removed package.  Now, gather all the
  origins first, then do the lookup in a single pass over /var/db/pkg.
  This should provide a major speedup for packages with hundreds of dependencies.
  Submitted by:   rdivacky (earlier version)
  MFC after:      1 month
  Revision  Changes    Path
  1.83      +62 -24    src/usr.sbin/pkg_install/add/perform.c
  1.43      +26 -10    src/usr.sbin/pkg_install/delete/perform.c
  1.64      +1 -0      src/usr.sbin/pkg_install/lib/lib.h
  1.22      +55 -17    src/usr.sbin/pkg_install/lib/match.c

More information about the cvs-all mailing list