Skip to content

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.

hlapp added 3 commits February 2, 2021 18:48
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.

2 participants