adopt cache for Rust emitter options parser
commitcc846f7250013d63216e38909c361280a134a0ab
authorSteve Cao <shiqicao@fb.com>
Fri, 22 May 2020 07:10:12 +0000 (22 00:10 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 May 2020 07:14:47 +0000 (22 00:14 -0700)
tree8d0bc0a8d2511381bdfbac3d4565b9b0eb72a94e
parent877bb1dd354586cb8f41e91ca3624754d3ef990f
adopt cache for Rust emitter options parser

Summary:
- avoid string allocation when passing `Env` from Ocaml to Rust,
- add cache for `options::from_configs`

Reviewed By: losvald

Differential Revision: D21683169

fbshipit-source-id: a0b3521dbced2d3cbba041e1d05bf8a5c218ac41
hphp/hack/Cargo.lock
hphp/hack/src/hh_compile.rs
hphp/hack/src/hhbc/cargo/options/Cargo.toml
hphp/hack/src/hhbc/cargo/options_ffi/Cargo.toml
hphp/hack/src/hhbc/compile.rs
hphp/hack/src/hhbc/compile_ffi.rs
hphp/hack/src/hhbc/options.rs
hphp/hack/src/hhbc/options_ffi.rs