forked from ocaml/odoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find in signature backed by a Hashtbl
Swap the implementation of `Find.context_of_sig` for one that first index the entire signature using a Hashtbl. The initialisation is cached with hopefully a large rate of cache hit. This speeds up significantly Find functions on signatures, which are performing poorly on some modules. This also removes the large amount of code duplication needed to write the find functions.
- Loading branch information
Showing
2 changed files
with
133 additions
and
179 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
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