diff options
author | Emil Lauridsen <[email protected]> | 2020-01-23 08:26:08 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2020-01-23 08:26:08 +0000 |
commit | 05aa5b854b230c2f6ba182c0f2c94f3de9a47204 (patch) | |
tree | d12e106a8fe4b2317d47f0ff727d34d4251fd2f8 /crates/ra_text_edit/src/text_edit.rs | |
parent | 2fb8a461225800ca605a9f2e997cd5e82fb37574 (diff) |
Remove RWLock from check watcher.
@matklad mentioned this might be a good idea.
So the general idea is that we don't really need the lock, as we can
just clone the check watcher state when creating a snapshot. We can then
use `Arc::get_mut` to get mutable access to the state from `WorldState`
when needed.
Running with this it seems to improve responsiveness a bit while cargo
is running, but I have no hard numbers to prove it. In any case, a
serialization point less is always better when we're trying to be
responsive.
Diffstat (limited to 'crates/ra_text_edit/src/text_edit.rs')
0 files changed, 0 insertions, 0 deletions