OSDN Git Service

[PDB] Increase TPI hash bucket count.
authorZachary Turner <zturner@google.com>
Thu, 24 Jan 2019 22:25:55 +0000 (22:25 +0000)
committerZachary Turner <zturner@google.com>
Thu, 24 Jan 2019 22:25:55 +0000 (22:25 +0000)
commit24fa3683a5f44327a758bf80b92e6d41dc8463e5
treeb31f9a19c043dcb61ac3c82db5cec5746ecd60a4
parent1e05d5e4463cb421ffdc4bd5133e8771b454ee52
[PDB] Increase TPI hash bucket count.

PDBs contain several serialized hash tables. In the microsoft-pdb
repo published to support LLVM implementing PDB support, the
provided initializes the bucket count for the TPI and IPI streams
to the maximum size. This occurs in tpi.cpp L33 and tpi.cpp L398.
In the LLVM code for generating PDBs, these streams are created with
minimum number of buckets. This difference makes LLVM generated
PDBs slower for when used for debugging.

Patch by C.J. Hebert
Differential Revision: https://reviews.llvm.org/D56942

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
tools/llvm-pdbutil/DumpOutputStyle.cpp