[all-commits] [llvm/llvm-project] 6ad887: [ELF] Parallelize version script and dynamic list ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 14 09:45:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ad887ba7827245de1a438cb6dd9149d39ab027d
      https://github.com/llvm/llvm-project/commit/6ad887ba7827245de1a438cb6dd9149d39ab027d
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M lld/ELF/SymbolTable.cpp
    M lld/ELF/SymbolTable.h

  Log Message:
  -----------
  [ELF] Parallelize version script and dynamic list matching (#223208)

scanVersionScript and handleDynamicList make one serial pass over
symVector per wildcard pattern, which is inefficient when there are
multiple wildcard patterns.

Parallelize this process: for each symbol, match against all wildcard
patterns and take the first match. This drops the TensorFlow link from
4.8s to 1.8s (--threads=8; its version script has 24 `*foo*` and most
time was in scanVersionScript).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list