mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
fc7b25b0a2
Summary: Just as for ints and bools, let's add support for strings. A few notes: 1) we don't have AtomicString, so I decided to use ArcSwap<String>. However to make code generation simpler (see tunables-derive) I've added a type alias for that 2) Return type is Arc<String> to avoid unnecessary copies.Another option that we might have here is to put the whole Tunables structure inside ArcSwap, and changing `tunables()` to return Arc<MononookeTunables> instead of &'static MononokeTunables. However that's a bigger change to make. Reviewed By: markbt Differential Revision: D21592390 fbshipit-source-id: 6d3cf340b13f7aef9adb2b1b99ed2bf260033285 |
||
---|---|---|
.. | ||
fs | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
scripts | ||
test_support | ||
test-data | ||
win | ||
.clang-format | ||
.gitignore | ||
Eden.project.toml |