Skip to content

oxfmt: Investigate the performance of glob expansion #19063

@leaysgur

Description

@leaysgur

By #18976, CLI now supports glob patterns.

However, as pointed out in the review, the expansion is currently single-threaded.

Furthermore, to handle cases like **/*.ts, it always searches everything from the cwd.

As potential improvements:

  • Simply use build_parallel() execution
  • Find a common prefix directory and narrow down the search from there

Find common usecases, benchmark and determine how useful either or both of these approaches would actually be.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions