-
Notifications
You must be signed in to change notification settings - Fork 93
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
Python: variables pane updates for data frames with many columns is slow #2174
Comments
It turns out that the delay is not due to the change detection logic. It happens at the I wondered if we could use |
How we use
|
I think we can just return the number of data cells * 8 as a rough estimate of size for now, until we need something more precise. |
Agreed -- its not even displayed anywhere so this seems like it would be fine to me. If we decide to move pandas Series to the data group instead of the values group as we've discussed, it would be the same (number of values in the series * constant) |
Positron Version: git main
Steps to reproduce the issue:
df2 = df.T
)For example
(without Positron in the loop,
df.T
is virtually instantaneous)The variables pane takes over 10 seconds for the update to come through.
We should look at the variables logic around data frames to make sure that we don't do excess computations for data frames with > 10,000 columns. For some users, this case is less unusual than one might think, and so we don't want the UI to get blocked in this scenario.
The text was updated successfully, but these errors were encountered: