Skip to content

[Bug]: Perf: Slow postprocessing.run action after js_image_layer's entries write #2529

@stoiky

Description

@stoiky

What happened?

When using js_image_layer on js_binary targets with many inputs (100k+) we're observing very slow postprocessing.run events in the Bazel profiles. These occur every-time, also when fully cached.

The snips are from a CI linux runner profile.
Image
Image

Version

Development (host) and target OS/architectures: macOS & k8 + Engflow remote cache

Output of bazel --version: release 7.4.1

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: rules_js 2.8.1

Language(s) and/or frameworks involved: JS

How to reproduce

The entries.json generated is usually over 150MB with more than 500k lines in some of our services. 

So the js_binary should depend on node modules with many files.

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions