From ec866f83703e63c0750df0b955a3288434a127b3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 7 May 2008 14:11:56 -0400 Subject: Optimised file statting code when scanning for modified pages; cut the number of system calls in half. (Still room for improvement.) --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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 (! $@) { -- cgit v1.2.3