-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Speed up check for modname-symname duplicates
When we check "lookup by name", a mismatch is allowed if there are duplicates with the same modname and symname. So, we must be able to detect when such duplicates occur. We were using a linear search. Add a quick sort by modname/symname and then initialize a field "is_duplicate" to speed up detection of duplicates. Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
- Loading branch information
Showing
1 changed file
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters