Skip to content

Cache user env for performance improvement - #374

Merged
Samruddhi Khandale (samruddhikhandale) merged 6 commits into
devcontainers:mainfrom
eljog:eljog/cache-userenvprob
Jan 18, 2023
Merged

Samruddhi Khandale (samruddhikhandale) merged 6 commits into
devcontainers:mainfrom
eljog:eljog/cache-userenvprob

Conversation

@eljog

@eljog Eljo George (eljog) commented Jan 13, 2023 •

Copy link
Copy Markdown
Member

We've seen that user environment prob command often take multiple seconds to run, which slows down the commands

With this PR, the caller of the up command or run-user-commands command can optionally pass the cache directory name if they would like to use the cache.

If a cache directory name is provided via --container-session-data-folder option, user envs will be cached in that directory, and the subsequent invocations will use the cache instead of probing user envs.

@eljog
Eljo George (eljog) requested a review from a team as a code owner January 13, 2023 20:31
@eljog Eljo George (eljog) changed the title Cache user env in up command for performance improvement Jan 13, 2023

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, left comments on details I previously missed.

Comment thread src/spec-common/injectHeadless.ts Resolved
Comment thread src/spec-common/injectHeadless.ts Resolved
Comment thread src/spec-common/injectHeadless.ts Resolved

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Two nits. Otherwise ready for merging.

Comment thread src/spec-common/injectHeadless.ts Resolved
Comment thread src/spec-common/injectHeadless.ts Resolved

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, LGTM

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) merged commit 83c8030 into devcontainers:main Jan 18, 2023
@eljog
Eljo George (eljog) deleted the eljog/cache-userenvprob branch January 18, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants