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 repl output window performance #2011

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Commits on Jan 8, 2023

  1. Throttle printing repl output to output window

    When an excessive amount of output is produced by the repl (for example
    as a result of a rogue loop that is printing to stdout) Calva can
    sometimes hang while trying to write all the output to the output
    window/file.
    
    The only way to resolve is to restart/reload the VSCode window.
    
    This commit introduces a new config entry `replOutputThrottleRate` which
    when set to a non-0 number will throttle output from the repl
    connection. If more output items are received than the throttle rate in
    a 500ms window then they will just be dropped.
    
    Addresses BetterThanTomorrow#942
    Fixes BetterThanTomorrow#2010
    julienvincent committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    ac022a4 View commit details
    Browse the repository at this point in the history
  2. Truncate repl output as length crosses threshold

    Calvas performance can be drastically affected as the size of the repl
    output window grows.
    
    This commit adds a config entry `replOutputMaxLines` which if set to a
    non-0 number will cause the output window to be truncated if it grows
    beyond this threshold.
    
    Fixes BetterThanTomorrow#804
    julienvincent committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    99b6e9d View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. Fix incorrect changelog entry title

    Co-authored-by: Peter Strömberg <[email protected]>
    julienvincent and PEZ authored Jan 10, 2023
    Configuration menu
    Copy the full SHA
    eaa5493 View commit details
    Browse the repository at this point in the history