From 469219162f0a3cb51f53bd1b4172c3b424be1ec0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 May 2007 05:16:33 +0100 Subject: increase performance of queryFeedHeadlines request --- backend.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 9ca9e0536..9b28f650e 100644 --- a/backend.php +++ b/backend.php @@ -178,8 +178,13 @@ if ($op == "viewfeed") { + $print_exec_time = true; + $timing_info = getmicrotime(); + print ""; + if ($_GET["debug"]) $timing_info = print_checkpoint("0", $timing_info); + $omode = db_escape_string($_GET["omode"]); $feed = db_escape_string($_GET["feed"]); @@ -200,6 +205,8 @@ print "]]>"; + if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info); + if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) { print ""; foreach ($topmost_article_ids as $id) { @@ -208,10 +215,14 @@ print ""; } + if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info); + print ""; getAllCounters($link, $omode); print ""; + if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info); + print ""; } -- cgit v1.2.3-54-g00ecf