forked from mirage/ocaml-uri
-
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.
gen_service: change code generation strategy to avoid big switches
See mirage#106: the gigantic pattern-matching in the code generated by gen_service.ml hit code generation bug on ARM backends. The new code only generate large arrays (these could easily be split if further issues were reported), and uses dichotomic search on sorted array to map services to ports and conversely. On my (x86_64) machine, build time changes from 45s to 4.5s.
- Loading branch information
Showing
2 changed files
with
76 additions
and
28 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