Commit Graph

5 Commits

Author SHA1 Message Date
XhmikosR
9257ce1e43 stats.sh: speed up stats extraction 2025-11-22 17:27:30 +02:00
Michael Lohmann
dd9bd42f52 stats.sh: process files in memory instead of on disk
Writing the file to the filesystem for all tags is unnecessary if the
content can just be parsed in memory. This improves the performance:

Here the output of `time ./stats.sh`:

old
./stats.sh  5.96s user 26.53s system 94% cpu 34.533 total

new
./stats.sh  5.85s user 22.86s system 102% cpu 28.040 total

So a reduction of 6.5s (23%) is achieved even on a computer with a
decent SSD.
2025-08-02 23:35:25 +02:00
XhmikosR
d3d4124e7e Remove unneeded trailing whitespaces 2023-04-08 14:55:22 +03:00
Steven Black
410aca3cc3 Issue #2104: fix — Remove cruft in the stats bash script. 2022-07-18 23:21:23 -04:00
Steven Black
4cfe084f40 Add the beginnings of statistics tracking. 2022-07-18 22:49:04 -04:00