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

[server / inferrer] prefetch configuration files #5529

Merged
merged 2 commits into from
Sep 6, 2021
Merged

Conversation

svenefftinge
Copy link
Member

@svenefftinge svenefftinge commented Sep 3, 2021

Prefetch configuration files in parallel and in advanced based on a static cache.

Context: The inferred logic is based on a conditional tree, that asks about configuration files sequentially one by one. Requesting all those files in parallel should speed up the process.

fixes #5527

@svenefftinge
Copy link
Member Author

svenefftinge commented Sep 6, 2021

/werft run

👍 started the job as gitpod-build-se-short-branch-name.2

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Didn't notice any difference in terms of UX. LGTM! ✔️

Approving to unblock merging this but holding a) because of one minor typo in the comments and b) in case @AlexTugarev wants to take a closer look at the code. 🏓

/hold

components/server/src/projects/projects-service.ts Outdated Show resolved Hide resolved
@roboquat
Copy link
Contributor

roboquat commented Sep 6, 2021

LGTM label has been added.

Git tree hash: d68c7a7ce5a760e435aede1e5136b5eb7255ba8e

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
@roboquat
Copy link
Contributor

roboquat commented Sep 6, 2021

New changes are detected. LGTM label has been removed.

@roboquat roboquat removed the lgtm label Sep 6, 2021
@AlexTugarev
Copy link
Member

/approve

That make much sense!

@roboquat
Copy link
Contributor

roboquat commented Sep 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev, gtsiolis

Associated issue: #5527

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

const content = await fileProvider.getFileContent(commitContext, user, path);
if (content) {
cache[path] = content;
return await cache[path];
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

@svenefftinge
Copy link
Member Author

/hold cancel

@gtsiolis gtsiolis added the lgtm label Sep 6, 2021
@roboquat roboquat merged commit 6c8120b into main Sep 6, 2021
@roboquat roboquat deleted the se/short-branch-name branch September 6, 2021 14:14
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.

Improve Inferrer Performance
4 participants