[Hackage] #570: Include distributions status on package page

Hackage trac at galois.com
Sat Aug 22 12:47:37 EDT 2009


#570: Include distributions status on package page
--------------------------------+-------------------------------------------
  Reporter:  nomeata            |        Owner:         
      Type:  enhancement        |       Status:  new    
  Priority:  normal             |    Milestone:         
 Component:  hackageDB website  |      Version:         
  Severity:  normal             |   Resolution:         
  Keywords:  patch              |   Difficulty:  unknown
Ghcversion:                     |     Platform:         
--------------------------------+-------------------------------------------
Comment (by nomeata):

 Timing before my patches:
 {{{
 $ time PATH_INFO=/xmonad-0.8.1 ./package >/dev/null
 real    0m0.021s
 user    0m0.012s
 sys     0m0.008s
 }}}

 Timing with the global package map:
 {{{
 $ time PATH_INFO=/xmonad-0.8.1 ./package >/dev/null
 real    0m0.063s
 user    0m0.048s
 sys     0m0.008s
 }}}

 So you are right. I prepared a patch that adds a small tool,
 splitDistroMap, which copies the information into small files per package
 (not package+version, one level higher), and now the runtime is
 acceptable:

 {{{
 $ time PATH_INFO=/xmonad-0.8.1 ./package >/dev/null
 real    0m0.022s
 user    0m0.016s
 sys     0m0.004s
 }}}

 I am attaching an updated patch.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/570#comment:7>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list