Compute string hashes early and cache them.
authorRui Ueyama <ruiu@google.com>
Mon, 25 Sep 2017 01:42:57 +0000 (01:42 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 25 Sep 2017 01:42:57 +0000 (01:42 +0000)
commit22125d8c84ec5111828a8d3183bdb4ede5dbc58e
tree10975f6d506268186cc08247e2e18dfdba65ae01
parent5bbe4a4debf85743e440a231ba372b9cbcc1213c
Compute string hashes early and cache them.

This change alone speeds up linking of Clang debug build with -gdb-index
by 1.2 seconds, from 12.5 seconds to 11.3 seconds. (Without -gdb-index,
lld takes 8.5 seconds to link the same input files.)

llvm-svn: 314090
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h