[all-commits] [llvm/llvm-project] 49279c: [ELF] Improve --export-dynamic-symbol performance ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 17 17:13:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 49279ca160183c1567e2637f88f3e92eb458c3e7
      https://github.com/llvm/llvm-project/commit/49279ca160183c1567e2637f88f3e92eb458c3e7
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/ScriptParser.cpp
    M lld/ELF/ScriptParser.h
    M lld/test/ELF/export-dynamic-symbol.s

  Log Message:
  -----------
  [ELF] Improve --export-dynamic-symbol performance by checking whether wildcard is really used

A hasWildcard pattern iterates over symVector, which can be slow when there
are many --export-dynamic-symbol. In optimistic cases, most patterns don't use
a wildcard character. hasWildcard: false can avoid a symbol table iteration.

While here, add two tests using `[` and `?`, respectively.




More information about the All-commits mailing list