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

Slow printing of large segments #237

Open
Hespe opened this issue Aug 9, 2024 · 0 comments
Open

Slow printing of large segments #237

Hespe opened this issue Aug 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Hespe
Copy link
Member

Hespe commented Aug 9, 2024

When working with large segments, getting printable representation turns quite slow. This wouldn't usually be an issue if print() is called manually, but during debugging the text representation is updated repeatedly by the editor.

For example, VS Code starts printing the following warning each time you evaluate a statement or run some code, in this case for a segment with ~5000 elements:

pydevd warning: Computing repr of segment (Segment) was slow (took 0.77s)

A solution might be to stop printing every element beyond a certain size.

@Hespe Hespe added the enhancement New feature or request label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant