avoid calling unioning when localizing options
commit6edd51521799076fcfc35812803c60d5af95cbb4
authorCatherine Gasnier <catg@fb.com>
Thu, 10 Mar 2022 12:53:33 +0000 (10 04:53 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 10 Mar 2022 12:53:33 +0000 (10 04:53 -0800)
treedb304417bc699763e821ded2659c2131186670ee
parentf95c4b9f80a58e61f83be2cd520bc54d840d3168
avoid calling unioning when localizing options

Summary: This showed to be around 2% of a full init on a profile.

Reviewed By: vsiles

Differential Revision: D34390890

fbshipit-source-id: 52a345037a0383c49ba1748cafbe7d9fc0336865
hphp/hack/src/typing/typing_defs.mli
hphp/hack/src/typing/typing_phase.ml
hphp/hack/src/typing/typing_utils.mli
hphp/hack/test/typecheck/yield/yield_lambda2.php.exp