patch applied (hackage-server): "Reduce memory footprint of DownloadCounts (1/n)"

devnull at community.haskell.org devnull at community.haskell.org
Mon Jul 1 16:13:17 CEST 2013


Mon Jul  1 14:51:31 BST 2013  edsko at well-typed.com
  * Reduce memory footprint of DownloadCounts (1/n)
  Ignore-this: 19e9a724564b3c6e5ca88859da883fb3
  
  Change the DownloadCounts feature so that it only keeps today's statistics in
  memory, and everything else on disk (and simplify the API at the same time).
  
  This isn't quite done yet though, because backup/restore has not yet been
  implemented, and will require some changes to the backup/restore infrastructure
  because we have no way of backuping the on-disk statistics at the moment.

    M ./Distribution/Server/Features/DownloadCount.hs -78 +69
    M ./Distribution/Server/Features/DownloadCount/Backup.hs +6
    M ./Distribution/Server/Features/DownloadCount/State.hs -73 +146
    M ./Distribution/Server/Features/Html.hs -4 +10
    M ./Distribution/Server/Features/PackageList.hs -11 +10
    M ./Distribution/Server/Pages/Package.hs -4 +6




More information about the cabal-devel mailing list