[PATCH] D104137: Optimize lld::elf::ScriptLexer::getLineNumber by avoiding repeated work

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 18:18:39 PDT 2021


MaskRay accepted this revision.
MaskRay added a comment.

I can commit this on your behalf:)

> For one 4MB linker script over 4 minutes was spent in getLineNumber's StringRef::count.

Hmm... A 4MB linker script is weird.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104137/new/

https://reviews.llvm.org/D104137



More information about the llvm-commits mailing list