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: reduce size of npm_package_store transitive_files depset #1594

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Apr 3, 2024

I've been waiting to make this optimization for a long time

BREAKING CHANGES:

If using npm packages with genrule, the default output of a target such as //:node_modules/foo is only the link directory so if you will also need to add //:node_modules/foo/dir which is the virtual store directory to the genrule srcs.

@gregmagolan gregmagolan changed the title refactor: reduce size of npm_package_store transitive_files depset perf: reduce size of npm_package_store transitive_files depset Apr 3, 2024
examples/genrule/BUILD.bazel Show resolved Hide resolved
@gregmagolan gregmagolan merged commit 1f2c076 into 2.x Apr 3, 2024
2 checks passed
@gregmagolan gregmagolan deleted the rjs2_26 branch April 3, 2024 20:57
@@ -262,9 +261,7 @@ def _make_symlink(ctx, symlink_path, target_file):
output = symlink,
target_path = relative_file(target_file.path, symlink.path),
)
files.append(target_file)
Copy link
Member

Choose a reason for hiding this comment

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

What allowed this to be dropped?

@gregmagolan gregmagolan mentioned this pull request Apr 29, 2024
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants