mirror of
https://github.com/php/presentations.git
synced 2026-03-23 23:22:22 +01:00
A small tweak, and added joind.in IDs.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -11,31 +11,6 @@
|
||||
<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>
|
||||
@@ -46,4 +21,13 @@ $i++;
|
||||
]]></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>
|
||||
|
||||
52
xdebug-phpbcn11.xml
Normal file
52
xdebug-phpbcn11.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user