commit | 846a9b19604580c14c75a3bd71e2e54817ab100b | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Mon Dec 03 10:51:17 2012 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Mon Dec 03 10:51:17 2012 -0800 |
tree | 5b283d34ee9937ddece5742a71e6bdbedd599138 | |
parent | 25169e17558991ce54bf1c2d7248b7872c84badb [diff] |
Cache config value in LdapAuthBackend Looking up a configuration value can be slow at scale, sometimes the scan within JGit is O(N) and sometimes its O(log N). Either way is slower than caching the setting at startup as a primitive boolean. Gerrit coding style is to cache these sorts of configuration options. Change-Id: Ifd6b84eda4ea11ffec5bed14000fffd3480fc704