[all-commits] [llvm/llvm-project] 2c8eba: [ELF] sortSymTabSymbols: change vector to SmallVector

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 25 23:16:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c8ebab32eadbc749e669a6529d6a40929ae5d14
      https://github.com/llvm/llvm-project/commit/2c8ebab32eadbc749e669a6529d6a40929ae5d14
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-12-25 (Sat, 25 Dec 2021)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp

  Log Message:
  -----------
  [ELF] sortSymTabSymbols: change vector to SmallVector

This function may take ~1% time. SmallVector<SymbolTableEntry, 0> is smaller (16 bytes
instead of 24) and more efficient.




More information about the All-commits mailing list