rts/Printer.c: speed up '-Da' printer for 'LIBBFD' build
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 18 Aug 2015 16:06:41 +0000 (18:06 +0200)
committerBen Gamari <bgamari.foss@gmail.com>
Tue, 18 Aug 2015 16:32:28 +0000 (12:32 -0400)
commitebca3f80b9deb50bda1e3913b969785b27d92b4e
tree5a50c4f73fd393e1c5345e3f1f20f52d0fbda8f0
parentb17ec5674f26b0b65dda4ec446e0b9b5336b7562
rts/Printer.c: speed up '-Da' printer for 'LIBBFD' build

Patch switches from linear lookup in unordered array
to a hash table lookup.

When debugging GHC array contains 658_445 elements.

Found performance gap when tried to debug blackholes.

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Reviewers: simonmar, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1150
rts/Printer.c