[all-commits] [llvm/llvm-project] 2f9a80: [MC][NFC] Make ELFUniquingMap a StringMap (#95006)
aengelke via All-commits
all-commits at lists.llvm.org
Mon Jun 10 11:43:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f9a80b7343606f62b3e907b888a8e9d17c0c551
https://github.com/llvm/llvm-project/commit/2f9a80b7343606f62b3e907b888a8e9d17c0c551
Author: aengelke <engelke at in.tum.de>
Date: 2024-06-10 (Mon, 10 Jun 2024)
Changed paths:
M llvm/include/llvm/MC/MCContext.h
M llvm/lib/MC/MCContext.cpp
Log Message:
-----------
[MC][NFC] Make ELFUniquingMap a StringMap (#95006)
This avoid std::map, which is slow, and uses a StringMap. Section name,
group name, linked-to name and unique id are encoded into the key for
fast lookup.
This gives a measurable performance boost (>3%) for applications that
compile many small object files (e.g., functions in JIT compilers).
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