Opened 8 years ago

Closed 5 years ago

Last modified 4 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: Difficulty: Moderate (less than a day)
Test Case: N/A Blocked By:
Blocking: Related Tickets:

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 8 years ago by simonmar

  • Architecture set to Unknown
  • Difficulty set to Moderate (1 day)
  • Operating System set to Unknown

comment:2 Changed 8 years ago by igloo

  • Milestone set to 6.8
  • Test Case set to N/A

comment:3 Changed 6 years ago by simonmar

  • Milestone changed from 6.8 branch to 6.10 branch

comment:4 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:5 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:6 Changed 5 years ago by igloo

  • Milestone changed from 6.10 branch to 6.12 branch

comment:7 Changed 5 years ago by simonmar

  • Component changed from Compiler to Package system

comment:8 Changed 5 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed

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 4 years ago by simonmar

  • Difficulty changed from Moderate (1 day) to Moderate (less than a day)
Note: See TracTickets for help on using tickets.