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

feat: Replace SystemStateReader.read() with lru_cache #105

Merged
merged 10 commits into from
May 21, 2024

Commits on Apr 19, 2024

  1. doc: minimal fixes

    Melkor333 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    746e287 View commit details
    Browse the repository at this point in the history
  2. refactor: Make reader return values immediately

    In preparation for LRU caching, don't make the reader store the
    variables itself. Instead, the functions return the read state
    directly.
    The now defunct read() function is removed separately
    Melkor333 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    b92852e View commit details
    Browse the repository at this point in the history
  3. refactor: FunctionCommand -> DummyCommand

    The FunctionCommand was required to reset the
    reader, which is not necessary anymore.
    Melkor333 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    c96858a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7551c83 View commit details
    Browse the repository at this point in the history
  5. refactor: Add missing "provides" for consistency

    These provides are not necessary for dependecy resolving.
    But upcoming caching will reuse the provides and therefore require
    consistent use of it.
    Melkor333 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    4cda30c View commit details
    Browse the repository at this point in the history
  6. feat: Add LRU cache for state_reader() functions

    Add an LRU cache to the state_reader so state is only reread when an
    actual changing command has been executed.
    After command execution the cache of the relevant types is cleared.
    Melkor333 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    2542fdb View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    cdc1610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4109b5 View commit details
    Browse the repository at this point in the history
  3. fix: Remove unrequired mirror dependency

    Mirrors are updated ad-hoc. No dependency-management is required.
    Therefore no Command is generated and the `mirror` dependency-type
    doesn't exist.
    Melkor333 committed May 2, 2024
    Configuration menu
    Copy the full SHA
    e85067e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    777e51a View commit details
    Browse the repository at this point in the history