In v0.2.2, instances of the Finder class began accumulating boolean flags in a dictionary, to keep track of which documents it succeeded or failed to find in a given collection.
Some users may not want to sacrifice the extra RAM that that consumes. For example, maybe CLI users will be OK with it, but library importers will not.
The task here is to make that caching optional. It can be enabled via a parameter to the Finder constructor.
We can disable it by default there so that the feature is opt-in. In our CLI code, we can enable it.
This way, it is enabled for CLI scans and optional for importers.
Later, we could add a CLI option so that even CLI users can choose.
In v0.2.2, instances of the
Finderclass began accumulating boolean flags in a dictionary, to keep track of which documents it succeeded or failed to find in a given collection.Some users may not want to sacrifice the extra RAM that that consumes. For example, maybe CLI users will be OK with it, but library importers will not.
The task here is to make that caching optional. It can be enabled via a parameter to the
Finderconstructor.We can disable it by default there so that the feature is opt-in. In our CLI code, we can enable it.
This way, it is enabled for CLI scans and optional for importers.
Later, we could add a CLI option so that even CLI users can choose.