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

Some more performance improvements #313

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

martinRenou
Copy link
Member

@martinRenou martinRenou commented Aug 30, 2024

Still playing with my case from #311 for improving #307

I can go down to 487 μs ± 10.2 μs per loop (mean ± std. dev. of 7 runs, 1,000 loops each) by improving the processing of big lists and tuples.

@martinRenou martinRenou added the enhancement New feature or request label Aug 30, 2024
Copy link

Binder 👈 Launch a Binder on branch martinRenou/jupyterlab-variableInspector/more_perf

src/inspectorscripts.ts Outdated Show resolved Hide resolved
@martinRenou
Copy link
Member Author

As you requested, the maximum number of shown items is now configurable:

Screencast.from.2024-09-03.10-49-56.mp4

Copy link
Collaborator

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the setting - it turned out a bit more involved then I anticipated. It's great to have it so easily configurable - this will ensure that existing users will not get frustrated by being unable to see more items.

Just tiny suggestions on the setting schema to make it easier to use :)

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
@martinRenou
Copy link
Member Author

Thanks for the review and the suggestions!

@martinRenou martinRenou merged commit 3f3853d into jupyterlab-contrib:main Sep 3, 2024
6 checks passed
@martinRenou martinRenou deleted the more_perf branch September 3, 2024 09:14
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

Successfully merging this pull request may close these issues.

2 participants