[gerrit_util] Cache resolved Authenticator as a class variable.
I noticed that the Authenticator is resolved maybe 5 or 6 times per git-cl invocation. This should lead to more consistent behavior and will likely be a bit faster, especially for SSOAuthenticator and LuciAuthAuthenticator which involve subprocess invocations. R=ayatane@chromium.org Bug: 336351842 Change-Id: Id6c2873a6960a171305560acb98afe2c4f397295 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5589865 Auto-Submit: Robbie Iannucci <iannucci@chromium.org> Reviewed-by: Yiwei Zhang <yiwzhang@google.com> Commit-Queue: Robbie Iannucci <iannucci@chromium.org>changes/65/5589865/18
parent
bdf64705c3
commit
137bb69871
Loading…
Reference in New Issue