Skip to content

Stop flattening depsets in analysis #622

Closed

Description

@hlopko

There are numerous places in the rust rules where we flatten depsets using .to_list() method. That is frowned upon and can cause slow analysis and high memory use.

Not all instances can be fixed just yet - see bazelbuild/bazel#13132.

Activity

  1. UebelAndre commented on Feb 16, 2026

    @UebelAndre
    Collaborator

    Gonna close this out as it's not effectively tracking any work. Anyone with a PR to improve depset usage should throw that open and a maintainer will gladly take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions