This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Use hash to speed up BINCL/INCL processing.


This increases the size of the temporary space used by BINCL/INCL processing by 4 bytes per BINCL. The benefit is that it removes a huge number of string compares when processing large numbers of BINCLs and EXCLS.


2002-12-06 Klee Dienes <kdienes@apple.com>

* dbxread.c (header_file_location): New field 'hash'.
(add_bincl_to_list): Set the 'hash' field.
(find_corresponding_bincl_psymtab): Compute the hash of 'name'
and use that to pre-check the comparison.

Attachment: bincl-hash.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]