Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
6b42834f
Commit
6b42834f
authored
Apr 09, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Performance improvements [simplified block stack / topLevelBlock]
git-svn-id:
svn://dwoo.org/dwoo/trunk@17
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
25dd9806
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGELOG
CHANGELOG
+1
-0
Dwoo.php
Dwoo.php
+3
-1
topLevelBlock.php
plugins/builtin/blocks/topLevelBlock.php
+2
-2
No files found.
CHANGELOG
View file @
6b42834f
...
...
@@ -4,6 +4,7 @@
! BC Break: $dwoo->output() and get() have been swapped internally, but it
doesn't change anything for you unless you called output(*, *, *, true)
directly to emulate get(). This was done to reduce some overhead
* Performance improvements
[2008-04-09] 0.3.4
...
...
Dwoo.php
View file @
6b42834f
...
...
@@ -897,7 +897,9 @@ class Dwoo
else
{
echo
$tmp
->
process
();
}
}
unset
(
$tmp
);
}
/**
...
...
plugins/builtin/blocks/topLevelBlock.php
View file @
6b42834f
...
...
@@ -26,12 +26,12 @@ final class DwooPlugin_topLevelBlock extends DwooBlockPlugin
public
static
function
preProcessing
(
DwooCompiler
$compiler
,
array
$params
,
$prepend
=
''
,
$append
=
''
,
$type
)
{
return
'ob_start();
$this->addStack("topLevelBlock");
'
.
DwooCompiler
::
PHP_CLOSE
;
return
'ob_start(); '
.
DwooCompiler
::
PHP_CLOSE
;
}
public
static
function
postProcessing
(
DwooCompiler
$compiler
,
array
$params
,
$prepend
=
''
,
$append
=
''
)
{
return
DwooCompiler
::
PHP_OPEN
.
'
$this->delStack();
return ob_get_clean();'
;
return
DwooCompiler
::
PHP_OPEN
.
'return ob_get_clean();'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment