reclient_helper.py: Simplify workspace_is_on_slow_filesystem
I initially didn't want to make this code Google-specific, however I now believe that it's better for everyone to simplify it like this: - It's much less code to just check for the path prefix. We do this already in gclient.py, too, so the approach is proven to work. - The call to findmnt introduces a 15ms overhead that affects everyone, even users who will never have their workspace on Cog. - External folks who run their own infrastructure likely have their own fork of depot_tools anyway and can patch this as needed. Bug: b/324547324 Change-Id: Ic00d417c280ac71529d106cfb2bcc844dfd44bd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5358773 Commit-Queue: Philipp Wollermann <philwo@chromium.org> Auto-Submit: Philipp Wollermann <philwo@chromium.org> Reviewed-by: Junji Watanabe <jwata@google.com>changes/73/5358773/4
parent
79e1a7174c
commit
43bedd368b
Loading…
Reference in New Issue