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

Commits on Feb 2, 2021

  1. Provides an in-memory cache initializable from file

    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 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    c5514ac View commit details
    Browse the repository at this point in the history
  2. Memoises corpus size and annotations count functions

    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 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    e3088a4 View commit details
    Browse the repository at this point in the history
  3. Allows package path to be evaluated dynamically

    This change should achieve compatibility with "Staged Installation", see
    https://developer.r-project.org/Blog/public/2019/02/14/staged-install/
    hlapp committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    a95d9f8 View commit details
    Browse the repository at this point in the history