Skip to content

Tidy is incredibly slow #127453

Closed
Closed
@Noratrieb

Description

@Noratrieb

Running git push with the tidy check hook just hangs. perf top shows that it's doing lots of string operations:

 34.53%  rust-tidy         [.] alloc::str::<impl str>::to_uppercase
  12.34%  rust-tidy         [.] core::unicode::unicode_data::conversions::to_upper
  10.02%  rust-tidy         [.] alloc::string::String::push
   8.63%  libc.so.6         [.] __memcmp_avx2_movbe

x test tidy takes 97s
???

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions