hgext/__init__.py
author Matt Mackall <mpm@selenic.com>
Fri, 17 Feb 2012 13:53:41 -0600
changeset 16132 41fc1e078d68
parent 1360 7d439981bec4
child 28450 155e3308289c
permissions -rw-r--r--
graphmod: add config cache Before, we'd lookup the branch for every edge segment in the entire graph: extremely expensive. This happened even when no per-branch settings existed. Now we define a revision -> config cache function that's LRU-cached and is a no-op when no configuration exists. Still not terribly fast, but hopefully only one real branch lookup per revision. This might degenerate for wide graphs as the LRU is hard-coded to 20 elements.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1360
7d439981bec4 Re-add hgext/__init__.py
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
# placeholder