Skip to content

🐛 Very slow linting of specific js files #5990

@qarmin

Description

@qarmin

Environment information

self compiled - 65e126793c122c3161991aec57b39104d27fb00b

Ubuntu 24.10

What happened?

When linting certain large JavaScript files, the Biome linter takes an unusually long time to complete.

Profiling indicates that a disproportionate amount of time is spent in the following functions:

  • biome_rowan::ast::AstNode::to_trimmed_string
  • find_token_for_inline_suppression

File - compressed.zip

On my computer, this takes 60 seconds

biome lint TEST___FILE.js

Image

Expected result

Faster linting

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-AnalyzerArea: analyzerS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions