rust-analyzer/crates/ra_cargo_watch
Emil Lauridsen 05aa5b854b 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.
2020-01-23 09:26:08 +01:00
..
src Remove RWLock from check watcher. 2020-01-23 09:26:08 +01:00
Cargo.toml Update crates 2020-01-22 15:40:35 -05:00