From d437bcc4a25f62fad65e625f4bc13cab8873f994 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 18 Sep 2005 14:10:08 +0200 Subject: more efficient changelog reading for recent changes getRecents now reads the changelog backwards in 4KB chunks instead of loading the whole file into an array and rsort it. This should be more memory efficient (and probably faster) for large change logs. Note: the format of the array returned by getRecents changed slightly plugins relying on it need to be adjusted. Sorry. darcs-hash:20050918121008-7ad00-1fdba47d29b0c038c6e4e4edc1d4c93e5ba769e9.gz --- inc/html.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 7c4e62cda..1e48b548c 100644 --- a/inc/html.php +++ b/inc/html.php @@ -469,15 +469,13 @@ function html_recent($first=0){ print p_locale_xhtml('recent'); print '