summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-05-07 14:11:56 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-05-07 14:11:56 -0400
commitec866f83703e63c0750df0b955a3288434a127b3 (patch)
tree2cb2efcd41a5633a6c34fbe3b077ec2516f76d4c /IkiWiki/Plugin
parent2c000c6e328c69c2a160ad37929968a7c3b47aa6 (diff)
Optimised file statting code when scanning for modified pages; cut the number of system calls in half. (Still room for improvement.)
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/inline.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 40f6aa81d..d7117b611 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -445,7 +445,7 @@ sub genfeed ($$$$@) { #{{{
$itemtemplate->param(content => $pcontent);
}
else {
- my ($a, $b, $c, $d, $e, $f, $g, $size) = stat(srcfile($file));
+ my $size=(srcfile_stat($file))[8];
my $mime="unknown";
eval q{use File::MimeInfo};
if (! $@) {