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

UI is very slow after creating a large character variable #4573

Closed
dfalbel opened this issue Sep 4, 2024 · 1 comment
Closed

UI is very slow after creating a large character variable #4573

dfalbel opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels
area: variables Issues related to Variables category. bug Something isn't working lang: r

Comments

@dfalbel
Copy link
Contributor

dfalbel commented Sep 4, 2024

Positron Version:

Positron Dev Version: 2024.09.0 build 0
Code - OSS Version: 1.92.0
Commit: Unknown
Date: Unknown
Electron: 30.1.2
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.5.0

If you read a large text file into a single string with eg (readr::read_file) the UI becomes almost unusable. A reprex:

x <- paste(1:5e6, collapse = "-")
Screen.Recording.2024-09-04.at.13.54.01.mov

This doesn't happen with Python, eg. if you do x = "-".join(["---------"]*1_000_000).

We should probably limit the size of the string we send to the front-end, or like RStudio, show something like:

image

@testlabauto
Copy link
Contributor

Verified Fixed

Positron Version(s) : 2024.12.0-66
OS Version          : OSX

Test scenario(s)

UI no longer becomes sluggish after executing reprex

Link(s) to TestRail test cases run or created:

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: variables Issues related to Variables category. bug Something isn't working lang: r
Projects
None yet
Development

No branches or pull requests

3 participants