Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provides an in-memory cache initializable from file #147

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hlapp
Copy link
Member

@hlapp hlapp commented Mar 4, 2020

The main motivation for now is to help speed up computing term weights for some of the corpora, in particular taxon_annotations, but it is designed not to be specific to that case in any way.

Be default the cache will behave as an in-memory cache, i.e., starting as an empty cache when the R session is started. Optionally it can, however, be initialized with a precomputed cache, which would normally be obtained by serializing the cache after the calculations or queries meant
to be cached have been run.

The main motivation for now is to help speed up computing term weights
for some of the corpora, in particular taxon_annotations, but it is
designed not to be specific to that case in any way.

Be default the cache will behave as an in-memory cache, i.e., starting
as an empty cache when the R session is started. Optionally it can,
however, be initialized with a precomputed cache, which would normally be
obtained by serializing the cache after the calculations or queries meant
to be cached have been run.
The annotations count function is currently only used for the
"taxon_annotations" corpus. This cache uses a persistent file for
initializing, the corpus size cache is only in memory.
@hlapp hlapp changed the title Provides an in-memory cache initializable from file WIP: Provides an in-memory cache initializable from file Feb 3, 2021
@hlapp hlapp marked this pull request as draft February 3, 2021 19:25
@hlapp hlapp changed the title WIP: Provides an in-memory cache initializable from file Provides an in-memory cache initializable from file Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant