You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bazel performance page shows depset.to_list() as being an anti-pattern that can severely impact performance:
You can coerce a depset to a flat list using to_list(), but doing so usually results in O(N^2) cost. If at all possible, avoid any flattening of depsets except for debugging purposes.
The Bazel performance page shows
depset.to_list()
as being an anti-pattern that can severely impact performance:Here we use it in a fair few places to scoop up sources: https://github.com/bazelbuild/rules_nodejs/search?q=.to_list%28%29&unscoped_q=.to_list%28%29
The text was updated successfully, but these errors were encountered: