Opened 11 years ago

Closed 7 years ago

Last modified 7 years ago

#593 closed task (fixed)

Cache contents of package.conf in a binary file

Reported by: simonmar Owned by:
Priority: normal Milestone: 6.12 branch
Component: Package system Version: 6.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: N/A
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

GHC takes about 0.1 secs to read package.conf each time it starts up. This could be improved by caching package.conf in binary format using GHC's binary serialiser, perhaps in ~/.ghc.

Change History (9)

comment:1 Changed 11 years ago by simonmar

Architecture: Unknown
difficulty: Moderate (1 day)
Operating System: Unknown

comment:2 Changed 10 years ago by igloo

Milestone: 6.8
Test Case: N/A

comment:3 Changed 9 years ago by simonmar

Milestone: 6.8 branch6.10 branch

comment:4 Changed 8 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:5 Changed 8 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:6 Changed 8 years ago by igloo

Milestone: 6.10 branch6.12 branch

comment:7 Changed 8 years ago by simonmar

Component: CompilerPackage system

comment:8 Changed 7 years ago by simonmar

Resolution: fixed
Status: newclosed

Fixed

Thu Sep 10 03:27:03 PDT 2009  Simon Marlow <marlowsd@gmail.com>
  * Change the representation of the package database
  
   - the package DB is a directory containing one file per package
     instance (#723)
  
   - there is a binary cache of the database (#593, #2089)
  
   - the binary package is now a boot package
  
   - there is a new package, bin-package-db, containing the Binary
     instance of InstalledPackageInfo for the binary cache.
  
  Also included in this patch
  
   - Use colour in 'ghc-pkg list' to indicate broken or hidden packages
    
     Broken packages are red, hidden packages are 
    
     Colour support comes from the terminfo package, and is only used when
      - not --simple-output
      - stdout is a TTY
      - the terminal type has colour capability
  
   - Fix the bug that 'ghc-pkg list --user' shows everything as broken

comment:9 Changed 7 years ago by simonmar

difficulty: Moderate (1 day)Moderate (less than a day)
Note: See TracTickets for help on using tickets.