aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-25 22:55:43 -0700
committerfriendica <info@friendica.com>2012-07-25 22:55:43 -0700
commit7bdbb8331c8341e6c3ea0b463f0a742d06972245 (patch)
treeaefe7364c818bd29d24800b2ce28d894f946f85d /mod/network.php
parent21b3dc9c27be50e73944eaec97001ad1279400f1 (diff)
downloadvolse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.tar.gz
volse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.tar.bz2
volse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.zip
picking up the page load times a bit
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index 2f93dd3bc..4ab0c790b 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -602,6 +602,8 @@ function network_content(&$a, $update = 0, $load = false) {
if($load)
$simple_update = '';
+ $start = dba_timer();
+
if($nouveau && $load) {
// "New Item View" - show all items unthreaded in reverse created date order
@@ -625,7 +627,7 @@ function network_content(&$a, $update = 0, $load = false) {
$items = fetch_post_tags($items);
}
elseif($load) {
-logger('loading:');
+
// Normal conversation view
@@ -696,7 +698,7 @@ logger('loading:');
}
}
-logger('items: ' . count($items));
+// logger('items: ' . count($items));
// We aren't going to try and figure out at the item, group, and page
// level which items you've seen and which you haven't. If you're looking
@@ -714,11 +716,20 @@ logger('items: ' . count($items));
$mode = (($nouveau) ? 'network-new' : 'network');
+ $first = dba_timer();
+
$o .= conversation($a,$items,$mode,$update,'client');
+
+ $second = dba_timer();
+
if(! $update) {
$o .= alt_pager($a,count($items));
}
+// logger('parent dba_timer: ' . sprintf('%01.4f',$first - $start));
+// logger('child dba_timer: ' . sprintf('%01.4f',$second - $first));
+
+
return $o;
}