[Hackage] #288: the package indexes are very slow
Hackage
trac at galois.com
Sat Jun 7 10:43:17 EDT 2008
#288: the package indexes are very slow
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: cabal-install tool | Version: 1.2.3.0
Severity: normal | Resolution:
Keywords: | Difficulty: hard (< 1 day)
Ghcversion: 6.8.2 | Platform:
---------------------------------+------------------------------------------
Comment (by duncan):
Partially fixed for common cases with:
{{{
Sat Jun 7 15:39:13 BST 2008 Duncan Coutts <duncan at haskell.org>
* Only inspect the needed parts of the installed and available indexes
The available package index is loaded lazily so if we can avoid
forcing all the packages then we can save a huge amount of slow text
parsing. So select out the maximal subset of the index that we could
ever need based on the names of the packages we want to install. For
the common case of installing just one or two packages this cuts
down the number of packages we look at by a couple orders of
magnitude. This does not help with the installed index which is read
strictly, though most people do not (yet) have hundreds of installed
packages, so that's less of an immediate problem.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/288#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list