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

Artifacts: Get rid of the markdown parser. #870

Merged
merged 2 commits into from
Feb 2, 2023

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Jan 26, 2023

We were always just emitting the markdown output to the console. This feature was very expensive, both in terms of deployment size and in terms of execution time.

When running vcpkg find artifact gcc, this change reduces the execution time from ~708 ms to ~378 ms, or 1.8 times as fast. It also cuts the deployed size of the ecmascript by 48%. (This is very close to letting us just embed the ecmascript directly which means we can avoid an extra download when someone touches artifacts)

image

I'm assuming the majority of the speedup is just due to node parsing less ecmascript. If we compare the old and new deployments side by side the top 1, 3, and 4 packages in terms of size (lodash, marked, and esprima) are gone.

image

Soon: YAML :)

We were always just emitting the markdown output to the console. This feature was very expensive, both in terms of deployment size and in terms of execution time.

When running `vcpkg find artifact gcc`, this change reduces the execution time from ~708 ms to ~378 ms, or 1.8 times as fast. It also cuts the deployed size of the ecmascript by 48%. (This is very close to letting us just embed the ecmascript directly which means we can avoid an extra download when someone touches artifacts)
@BillyONeal
Copy link
Member Author

Before:
image

After:
image

@BillyONeal BillyONeal merged commit a0a8f71 into microsoft:main Feb 2, 2023
@BillyONeal BillyONeal deleted the reduce-ecmascript-size branch February 2, 2023 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants