aboutsummaryrefslogtreecommitdiff
path: root/git-arr
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2022-08-31 22:48:45 +0200
committerAlberto Bertogli <albertito@blitiri.com.ar>2022-09-01 00:15:16 +0200
commit518188288e629b2a6912843f8c0dcc51960a22da (patch)
tree70ab759be0f25ffdd29a134bf60ab3e4691035c4 /git-arr
parent15547b279664602d524f20630fdb35f5424b0eba (diff)
downloadgit-arr-fork-518188288e629b2a6912843f8c0dcc51960a22da.zip
Cache some (possibly) expensive function calls
This patch memoizes some of the functions to help speed up execution. The speedup is quite variable, but ~30% is normal when generating a medium size repository, and the output is byte-for-byte identical.
Diffstat (limited to 'git-arr')
-rwxr-xr-xgit-arr2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-arr b/git-arr
index b109f23..337912a 100755
--- a/git-arr
+++ b/git-arr
@@ -186,7 +186,7 @@ bottle.app.push(app)
def with_utils(f):
"""Decorator to add the utilities to the return value.
-
+
Used to wrap functions that return dictionaries which are then passed to
templates.
"""