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

Console becomes slow after too many lines are printed #5441

Open
dfalbel opened this issue Nov 21, 2024 · 0 comments
Open

Console becomes slow after too many lines are printed #5441

dfalbel opened this issue Nov 21, 2024 · 0 comments
Labels
area: console Issues related to Console category.

Comments

@dfalbel
Copy link
Contributor

dfalbel commented Nov 21, 2024

System details:

Positron and OS details:

Positron Version: 2024.12.0 (Universal) build 51
Code - OSS Version: 1.93.0
Commit: 59b5b0c
Date: 2024-11-21T02:46:07.218Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Interpreter details:

> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 15.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Sao_Paulo
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.4.1 tools_4.4.1

Describe the issue:

In a long standing session that prints a good amount of output to the console, after some time the console
starts to be very slow, specially if you switch from Terminal (or any other tab that causes the console to be hiddent) back to the Console:

Screen.Recording.2024-11-21.at.14.59.46.mov

Note that switching to the console takes ~2/3 s.

Steps to reproduce the issue:

  1. Run in R
for (i in 1:100000) {
  cat("hello  world\n")
}
  1. Switch from the terminal to the console

Expected or desired behavior:

We should probably trim and only render the last n lines to avoid the slow rendering.
For instance, if you run R on the terminal and run the same loop printing a lot of lines, you won't see slowdowns when switching back to the terminal.

Were there any error messages in the UI, Output panel, or Developer Tools console?

N/A

@dfalbel dfalbel added the area: console Issues related to Console category. label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: console Issues related to Console category.
Projects
None yet
Development

No branches or pull requests

1 participant