svn: /web/presentations/trunk/ maps-phpconpl11.xml profiling-phpbcn11.xml profiling-phpconpl11.xml slides/profiling/does-not-matter.xml
xdebug-phpbcn11.xml
| From: | Derick Rethans | Date: | Tue, 25 Oct 2011 15:57:09 +0000 |
| Subject: | svn: /web/presentations/trunk/ maps-phpconpl11.xml profiling-phpbcn11.xml profiling-phpconpl11.xml slides/profiling/does-not-matter.xml xdebug-phpbcn11.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1759@lists.php.net to get a copy of this message | ||
derick Tue, 25 Oct 2011 15:57:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=318407
Log:
A small tweak, and added joind.in IDs.
Changed paths:
U web/presentations/trunk/maps-phpconpl11.xml
U web/presentations/trunk/profiling-phpbcn11.xml
U web/presentations/trunk/profiling-phpconpl11.xml
U web/presentations/trunk/slides/profiling/does-not-matter.xml
A web/presentations/trunk/xdebug-phpbcn11.xml
Modified: web/presentations/trunk/maps-phpconpl11.xml
===================================================================
--- web/presentations/trunk/maps-phpconpl11.xml 2011-10-25 15:38:50 UTC (rev 318406)
+++ web/presentations/trunk/maps-phpconpl11.xml 2011-10-25 15:57:09 UTC (rev 318407)
@@ -10,12 +10,12 @@
<topic>Maps</topic>
<title>Geolocation and Maps with PHP</title>
<event>IPC</event>
-<location>Masłów k/Kielc, Poland</location>
+<location>Kielce, Poland</location>
<date>Oct 21th, 2011</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
-<joindin></joindin>
+<joindin>http://joind.in/3919</joindin>
<url>http://derickrethans.nl/talks.html</url>
<slide>slides/map/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
Modified: web/presentations/trunk/profiling-phpbcn11.xml
===================================================================
--- web/presentations/trunk/profiling-phpbcn11.xml 2011-10-25 15:38:50 UTC (rev 318406)
+++ web/presentations/trunk/profiling-phpbcn11.xml 2011-10-25 15:57:09 UTC (rev 318407)
@@ -17,7 +17,7 @@
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
-<joindin></joindin>
+<joindin>http://joind.in/4314</joindin>
<slide>slides/dbus/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
Modified: web/presentations/trunk/profiling-phpconpl11.xml
===================================================================
--- web/presentations/trunk/profiling-phpconpl11.xml 2011-10-25 15:38:50 UTC (rev 318406)
+++ web/presentations/trunk/profiling-phpconpl11.xml 2011-10-25 15:57:09 UTC (rev 318407)
@@ -11,13 +11,13 @@
<topic>Debugging</topic>
<title>Profiling PHP Applications</title>
<event>PHPCon Poland</event>
-<location>Masłów k/Kielc, Poland</location>
+<location>Kielce, Poland</location>
<date>Oct 22th, 2011</date>
<speaker>Derick Rethans</speaker>
<email>derick@derickrethans.nl</email>
<twitter>derickr</twitter>
<url>http://derickrethans.nl/talks.html</url>
-<joindin></joindin>
+<joindin>http://joind.in/3920</joindin>
<slide>slides/dbus/title.xml</slide>
<slide>slides/toolbox/me.xml</slide>
Modified: web/presentations/trunk/slides/profiling/does-not-matter.xml
===================================================================
--- web/presentations/trunk/slides/profiling/does-not-matter.xml 2011-10-25 15:38:50 UTC (rev
318406)
+++ web/presentations/trunk/slides/profiling/does-not-matter.xml 2011-10-25 15:57:09 UTC (rev
318407)
@@ -11,33 +11,8 @@
<blurb align="center">echo is faster than print</blurb>
</div>
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Use sprintf instead of variables contained in double quotes, it’s
about 10x faster.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Use <?php … ?> tags when declaring PHP as all other styles
are depreciated, including short tags.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Just declaring a global variable without using it in a function slows
things down (by about the same amount as incrementing a local var). PHP probably does a check to see
if the global exists.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Methods in derived classes run faster than ones defined in the base
class.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">A function call with one parameter and an empty function body takes
about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15
$localvar++ operations.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Not everything has to be OOP, often it is just overhead, each method and
object call consumes a lot of memory.</blurb></div>
-
-<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Avoid overusing function calls.
-Calling a function in PHP is very expensive, so avoid it whenever you
can.</blurb></div>
-
<div effect="fade-in-out">
<break lines="6"/>
-<blurb align="center">Use isset where possible in replace of strlen.</blurb>
-<example><![CDATA[
-if (!isset($foo{5})) { echo "Foo is too short"; }
-//is faster than
-if (strlen($foo) < 5) { echo "Foo is too short"; }
-]]></example>
-</div>
-
-<div effect="fade-in-out">
-<break lines="6"/>
<blurb align="center">Use pre-incrementing where possible as it is 10%
faster</blurb>
<example><![CDATA[
++$i;
@@ -46,4 +21,13 @@
]]></example>
</div>
+<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Methods in derived classes run faster than ones defined in the base
class.</blurb></div>
+
+<div effect="fade-in-out"><break lines="6"/><blurb
align="center">A function call with one parameter and an empty function body takes
about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15
$localvar++ operations.</blurb></div>
+
+<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Not everything has to be OOP, often it is just overhead, each method and
object call consumes a lot of memory.</blurb></div>
+
+<div effect="fade-in-out"><break lines="6"/><blurb
align="center">Avoid overusing function calls.
+Calling a function in PHP is very expensive, so avoid it whenever you
can.</blurb></div>
+
</slide>
Added: web/presentations/trunk/xdebug-phpbcn11.xml
===================================================================
--- web/presentations/trunk/xdebug-phpbcn11.xml (rev 0)
+++ web/presentations/trunk/xdebug-phpbcn11.xml 2011-10-25 15:57:09 UTC (rev 318407)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation
+ template="css"
+ navmode="html"
+ navbarbackground="#4373b4"
+ navbartopiclinks="0"
+ navColor="#f1fbff"
+ logo1=""
+ stylesheet="presentations/slides/ezc/ez.css"
+ backgroundfixed="1" >
+<topic>Debugging</topic>
+<title>Xdebug</title>
+<event>PHP Barcelona</event>
+<location>Barcelona, Spain</location>
+<date>Oct 28th, 2011</date>
+<speaker>Derick Rethans</speaker>
+<email>derick@derickrethans.nl</email>
+<twitter>derickr</twitter>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin>http://joind.in/4312</joindin>
+<slide>slides/xdebug/title.xml</slide>
+<slide>slides/toolbox/me.xml</slide>
+
+<slide>slides/xdebug/main-things.xml</slide>
+<slide>slides/xdebug/pimped.xml</slide>
+<slide>slides/xdebug/pimp1-quick.xml</slide>
+<slide>slides/xdebug/pimp3.xml</slide>
+<slide>slides/xdebug/xdebug-var-dump.xml</slide>
+<slide>slides/xdebug/cli-color.xml</slide>
+<slide>slides/xdebug/shutup.xml</slide>
+<slide>slides/xdebug/headers.xml</slide>
+
+<slide>slides/xdebug/tracing.xml</slide>
+<slide>slides/xdebug/functiontrace-summary.xml</slide>
+<slide>slides/xdebug/live-demo.xml</slide>
+
+<slide>slides/xdebug/fly-swat.xml</slide>
+<slide>slides/xdebug/analyse-running-script.xml</slide>
+<slide>slides/xdebug/debugger-activation.xml</slide>
+<slide>slides/xdebug/netbeans.xml</slide>
+<slide>slides/xdebug/komodo.xml</slide>
+<slide>slides/xdebug/live-demo.xml</slide>
+
+<slide>slides/xdebug/profile2.xml</slide>
+<slide>slides/xdebug/profiling.xml</slide>
+<slide>slides/xdebug/profiling2.xml</slide>
+<!--<slide>slides/xdebug/live-demo.xml</slide>-->
+
+<slide>slides/xdebug/donate.xml</slide>
+<slide>slides/xdebug/resources.xml</slide>
+
+</presentation>