This is in the context of https://reviews.llvm.org/D32867 and attempts
to speed up reading symbols from object files in archive files.
Interestingly, archives without symbol tables are faster than those
with symbol tables with this patch. I benchmarked the linker with
the default build configuration, stripped symbol tables from archives
in the build tree, and ran the same test again. The first attempt
to link clang took 8.17s (average of 10 trials using the perf
command). The second attempt took 8.04s. This is odd but seems real.
Somewhat orthogonal to this patch, but that result seems to imply
that there's room for improvements in the code to handle archive
symbol table.