google / compare-codecs

Apache License 2.0
49 stars 23 forks source link

Refactoring the disk cache to have directory as an init parameter #78

Closed alvestrand closed 7 years ago

alvestrand commented 7 years ago

Running calculations of scores & best scores over several directories turned out to be complex if directory was passed as a call parameter.

This refactoring makes it part of the init parameters of the optimizer, the context and the cache.

This means that one has to have functions for "adopting" an encoding into the other context.

Fixes #77

alvestrand commented 7 years ago

PTAL. Not moving code between bin and lib at this time.

pzembrod commented 7 years ago

LGTM