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

perf(registry): significantly improve the "file:" protocol performance #1702

Merged
merged 1 commit into from
May 11, 2024

Conversation

williamboman
Copy link
Owner

Instead of spawning a separate yq process for each registry package, utilize multi-document parsing through a single
process.

This should have significant performance improvements on all platforms, but especially Windows, due to bottlenecks
caused by AV software.

IMPORTANT: Writing all package definitions as-is via stdin like this works because packages in the registry (at least
the core registry) must start with a document header (---), effectively acting as a document separator.

Instead of spawning a separate yq process for each registry package, utilize multi-document parsing through a single
process.

This should have significant performance improvements on all platforms, but especially Windows, due to bottlenecks
caused by AV software.

IMPORTANT: Writing all package definitions as-is via stdin like this works because packages in the registry (at least
the core registry) must start with a document header (---), effectively acting as a document separator.
@williamboman williamboman merged commit 098a56c into main May 11, 2024
14 checks passed
@williamboman williamboman deleted the perf/file-proto branch May 11, 2024 18:59
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.

1 participant