diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-11-29 16:46:37 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-11-29 16:46:37 +0100 |
commit | 8813170390f3c3a0f4743afbc92ede42953fa3b0 (patch) | |
tree | 39305350baee1eb564aae00294634bbe544983d3 /.gitignore | |
parent | ui-repolist: sort null values last (diff) | |
download | cgit-pink-8813170390f3c3a0f4743afbc92ede42953fa3b0.tar.gz cgit-pink-8813170390f3c3a0f4743afbc92ede42953fa3b0.zip |
ui-repolist: implement lazy caching of repo->mtime
When sorting the list of repositories by their last modification time, cgit would (in the worst case) invoke fstat(3) four times and open(3) twice for each callback from qsort(3). This obviously scales very badly. Now, the calculated modtime for each repo is saved in repo->mtime, thus keeping the number of stat/open invocations identical for sorted and unsorted repo-listings. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions