]> git.armaanb.net Git - stagit.git/commit
optimization: read stats once and remember it
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 30 Apr 2016 09:54:33 +0000 (11:54 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 30 Apr 2016 10:47:00 +0000 (12:47 +0200)
commit914880f31b04222fa2815f4f35543b72f881d5e4
treea8b10d66a365f03cccd374f80f0c9840b9a877ab
parent0bc47da0f7b66614cdf499755ceca1dc13ff91cd
optimization: read stats once and remember it

for an initial run and new commits this speeds stagit up a bit:
on an initial run of sbase goes from about 4 seconds to 2.8 on my machine.

now we can't use statsbuf, so create the stats string ourselves, while at it
color the + and - using a style (can be disabled for the color-haters out
there ;)).
stagit.c
style.css