codeview: don't walk the file list for every line
commit57a05813949015745e31a73918d905f651978d28
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 25 May 2016 06:00:23 +0000 (24 23:00 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 25 May 2016 06:00:23 +0000 (24 23:00 -0700)
tree9ed7ca05fbd8f9c1d4a6426c1d147aa240d9791f
parent4de0e936779a094b685c7ef959274687cf838fbe
codeview: don't walk the file list for every line

Instead of walking a linear list of files for every line, make a
simple comparison for the common case of the same file, and otherwise
use a hash table.

Cc: Jim Kukunas <james.t.kukunas@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
output/codeview.c