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

minimize overhead when checking the supported args by RStudio #160

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

jhgoebbert
Copy link
Contributor

This code ensures that rstudio --help is only called once which reduces the startup-overhead.

The function _support_args(..) returns a dict with true/false for all arguments passed as input. This dict is then checked afterwards if certain arguments are supported or not. So, if you want to check for a new arg now you must add it to _support_args(..)'s input-list first.

This PR also adds support for setting www-thread-pool-size via the environment variable JUPYTER_RSESSION_PROXY_THREAD_POOL_SIZE.

Copy link
Contributor

@yuvipanda yuvipanda left a comment

Choose a reason for hiding this comment

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

Two minor suggestions, happy to merge after that!

jupyter_rsession_proxy/__init__.py Outdated Show resolved Hide resolved
jupyter_rsession_proxy/__init__.py Outdated Show resolved Hide resolved
@yuvipanda yuvipanda merged commit e2618ac into jupyterhub:main Jan 3, 2025
1 check passed
@yuvipanda
Copy link
Contributor

yay, thank you @jhgoebbert! I tested this and it seems fine.

I really appreciate your patience in getting these through. Looking forward to more PRs from you in the future! \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants