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

Improve timer #5672

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Improve timer #5672

merged 2 commits into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. feat: add log package and performance module

    The logic in Timed() has defaults which are designed to avoid low-value log
    messages. A log is only emitted when the threshold is exceeded. Additionally,
    the log_mode parameter allows the caller to prevent Timed() logs, so that the
    caller may coalesce the message into another log.
    
    - Make timer helper into a context manager.
    - Add new decorator for timing functions.
    - Simplify timer helper function, eliminate obsolete logic.
    - Eliminate redundant logs and timer calls.
    holmanb committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    604c65b View commit details
    Browse the repository at this point in the history
  2. chore: add timer to io and string manipulation code

    refactors existing code to utilize timer codepaths:
    
    - replace manual timer implementations in subp.py and sockets.py
    - replace open() / read() calls with util.load_text_file() where appropriate
    holmanb committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    47d77d4 View commit details
    Browse the repository at this point in the history