rust-dev-tools / rls-vfs

Virtual File System for the RLS
17 stars 11 forks source link

One lock per file #2

Open nrc opened 7 years ago

nrc commented 7 years ago

Currently we have one lock for the whole VFS which is not very efficient.

matklad commented 7 years ago

Perhaps just change Mutex to RwLock? I don't expect there to a lot of parallelism: modification requests should be serialized anyway, and I think most editors (IDEA for sure) already serialize edition operations on their side.

nrc commented 7 years ago

We no longer hold the mega-lock for any file-system operations. So this is not so urgent any more. Should probably still change to RWLock.