summaryrefslogtreecommitdiffstats
path: root/progress.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-17 21:03:32 -0700
committerShawn O. Pearce <sop@google.com>2009-04-17 21:03:45 -0700
commitc12c360f89d4d1cc0a0ad80c4ea0785f84be1848 (patch)
tree7e875709a4270e681f7335b7a3171b14b2d8e313 /progress.py
parentfbcde472cadfc8319016faca90cb5b57f7a00ee4 (diff)
downloadgit-repo-c12c360f89d4d1cc0a0ad80c4ea0785f84be1848.tar.gz
Pickle parsed git config files
We now cache the output of `git config --list` for each of our GitConfig instances in a Python pickle file. These can be read back in using only the Python interpreter at a much faster rate than we can fork+exec the git config process. If the corresponding git config file has a newer modification timestamp than the pickle file, we delete the pickle file and regenerate it. This ensures that any edits made by the user will be taken into account the next time we consult the file. This reduces the time for a no-op repo sync from 0.847s to 0.269s. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'progress.py')
0 files changed, 0 insertions, 0 deletions