|
From: <var...@us...> - 2021-11-17 08:14:17
|
Revision: 10653
http://sourceforge.net/p/phpwiki/code/10653
Author: vargenau
Date: 2021-11-17 08:14:15 +0000 (Wed, 17 Nov 2021)
Log Message:
-----------
Remove durations
Modified Paths:
--------------
trunk/lib/IniConfig.php
trunk/lib/display.php
trunk/lib/main.php
Modified: trunk/lib/IniConfig.php
===================================================================
--- trunk/lib/IniConfig.php 2021-11-17 08:09:41 UTC (rev 10652)
+++ trunk/lib/IniConfig.php 2021-11-17 08:14:15 UTC (rev 10653)
@@ -431,7 +431,7 @@
$GLOBALS['INCLUDE_PATH'] = $rs['INCLUDE_PATH'];
}
$rs['PLUGIN_CACHED_CACHE_DIR'] = TEMP_DIR . '/cache';
- if (!findFile($rs['PLUGIN_CACHED_CACHE_DIR'], 1)) { // [29ms]
+ if (!findFile($rs['PLUGIN_CACHED_CACHE_DIR'], 1)) {
findFile(TEMP_DIR, false, 1); // TEMP must exist!
mkdir($rs['PLUGIN_CACHED_CACHE_DIR'], 0777);
}
@@ -459,8 +459,8 @@
unset($rs);
unset($rsdef);
- fixup_static_configs($file); //[1ms]
- fixup_dynamic_configs(); // [100ms]
+ fixup_static_configs($file);
+ fixup_dynamic_configs();
}
function fixup_static_configs($file)
Modified: trunk/lib/display.php
===================================================================
--- trunk/lib/display.php 2021-11-17 08:09:41 UTC (rev 10652)
+++ trunk/lib/display.php 2021-11-17 08:14:15 UTC (rev 10653)
@@ -35,7 +35,7 @@
require_once 'lib/TextSearchQuery.php';
$search = new TextSearchQuery(KEYWORDS, true);
$KeywordLinkRegexp = $search->asRegexp();
- // iterate over the pagelinks (could be a large number) [15ms on PluginManager]
+ // iterate over the pagelinks (could be a large number)
// or do a titleSearch and check the categories if they are linked?
$links = $page->getPageLinks();
$keywords[] = SplitPagename($page->getName());
Modified: trunk/lib/main.php
===================================================================
--- trunk/lib/main.php 2021-11-17 08:09:41 UTC (rev 10652)
+++ trunk/lib/main.php 2021-11-17 08:14:15 UTC (rev 10653)
@@ -39,7 +39,7 @@
function mayAccessPage($access, $pagename)
{
if (defined('ENABLE_PAGEPERM') and ENABLE_PAGEPERM)
- return _requiredAuthorityForPagename($access, $pagename); // typically [10-20ms per page]
+ return _requiredAuthorityForPagename($access, $pagename);
else
return true;
}
@@ -54,7 +54,6 @@
function __construct()
{
$this->_dbi = WikiDB::open($GLOBALS['DBParams']);
- // first mysql request costs [958ms]! [670ms] is mysql_connect()
if (in_array('File', $this->_dbi->getAuthParam('USER_AUTH_ORDER'))) {
include_once 'lib/pear/File_Passwd.php';
@@ -86,7 +85,7 @@
. $dbi->getParam('db_session_table'));
}
- parent::__construct(); // [90ms]
+ parent::__construct();
// Normalize args...
$this->setArg('pagename', $this->_deducePagename());
@@ -227,7 +226,6 @@
// This really maybe should be part of the constructor, but since it
// may involve HTML/template output, the global $request really needs
// to be initialized before we do this stuff.
- // [50ms]: 36ms if wikidb_page::exists
function updateAuthAndPrefs()
{
@@ -752,7 +750,6 @@
$this->finish(); // NORETURN
}
- // [574ms] mainly template:printexpansion: 393ms and template::expandsubtemplate [100+70+60ms]
function handleAction()
{
// Check illegal characters in page names: <>[]{}|"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|