Package zeroinstall :: Package zerostore :: Module optimise
[frames] | no frames]

Module optimise

source code

Optimise the cache.

Functions
(int, int, int, int)
optimise(impl_dir)
Scan an implementation cache directory for duplicate files, and hard-link any duplicates together to save space.
source code
Function Details

optimise(impl_dir)

source code 

Scan an implementation cache directory for duplicate files, and hard-link any duplicates together to save space.

Parameters:
  • impl_dir (str) - a $cache/0install.net/implementations directory
Returns: (int, int, int, int)
(unique bytes, duplicated bytes, already linked, manifest size)