mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4105638a1e
Summary: In earlier diffs in this stack, I updated the callsites that reference XDB tiers to use concrete &str types (which is what they were receiving until now ... but it wasn't spelled out as-is). In this diff, I'm updating them to use owned `String` instead, which lets us hoist up `to_string()` and `clone()` calls in the stack, rather than pass down reference only to copy them later on. This allows us to skip some unnecessary copies. Tt turns out we were doing quite a few "turn this String into a reference, pass it down the stack, then turn it back into a String". Reviewed By: farnz Differential Revision: D16260372 fbshipit-source-id: faec402a575833f6555130cccdc04e79ddb8cfef |
||
---|---|---|
.. | ||
parser/src | ||
types/src | ||
Cargo.toml |