#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                      |  
------------------------------------------+---------------------------------
Changes (by simonmar):

  * difficulty:  => Moderate (1 day)
  * milestone:  => 6.10 branch

Comment:

 The scheme we discussed before is something like this:

  * `ghc-pkg` would automatically generate a binary cache of the package DB
    whenever it changed.

  * we want to transition to using a directory of files for the package DB,
 where
    a new package can be installed by dropping a file into it and running
    `ghc-pkg update` to update the binary cache.

 The main sticking point here is what binary library to use.  In GHC we
 have our own binary library, but it currently isn't available for `ghc-
 pkg` - we'd have to extract it, which is difficult because it has
 dependencies on other GHC datatypes, or use a different binary library.

 If GHC were first modified to use `Data.Binary` for its interface files,
 this would be a lot easier.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2089#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to