Commit 97ec5e4e authored by Leonard Mosescu's avatar Leonard Mosescu
Browse files

Index prototypes and method definitions

Builder::FindMethod() used to do a linear search, which works
for a single class IR or small number of searches but it can easily
become a bottleneck.

We already have built a specialized hash table for indexing IR nodes
(StringsHashTable), so this change we're using it for indexing
prototypes and method definitions as well. In the process the hash table
is made more generic and reusable (and renamed to slicer::HashTable)

Bug: 37428380

Test: bazel test :dexter_tests

Change-Id: Id2e92342e81ae685bbab169f0198649b7f48e68c
parent fda27116
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment