From 518188288e629b2a6912843f8c0dcc51960a22da Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Wed, 31 Aug 2022 21:48:45 +0100 Subject: 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. --- git-arr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-arr') 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. """ -- cgit v1.2.3