#2089: reading the package db is slow
------------------------------------------+---------------------------------
Reporter: duncan | Owner:
Type: compile-time performance bug | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Driver | Version: 6.8.2
Severity: minor | Resolution:
Keywords: | Difficulty: Moderate (1 day)
Testcase: | Architecture: x86_64 (amd64)
Os: Multiple |
------------------------------------------+---------------------------------
Comment (by duncan):
Here is an example from debian where the current ghc-pkg
register/unregister system causes excess complexity:
https://bugs.launchpad.net/ubuntu/+source/gtk2hs/+bug/229489
The problem is that there are a lot of dependencies on the order in which
actions are performed. When upgrading ghc one has to unregister all the
old packages, then install the new ghc and then install and register all
the new packages. When packages are not written perfectly we end up with
corner cases where things go wrong (like the above bug about packages
being uninstallable).
With the proposed system it would be much simpler. The files could be
uninstalled and installed in any old order so long as we `ghc-pkg update`
at the end. There are many other examples of similar systems in linux
distros, so this mode is reasonably well supported (info caches, font
registration, gtk+ icon cache etc).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2089#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs