com presentations: Tweaks: phpce18.html slides/intro/php74 _2018.xml
[email protected] (Rasmus Lerdorf) Mon, 22 Oct 2018 13:14:37 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Commit: 8c3a5686fa7924d4ddacc9e5599c509e5db9ef3f Author: Rasmus Lerdorf <[email protected]> Mon, 22 Oct 2018 06:14:37 -0700 Parents: a84294aaa9a12dfb59dba7f63beee94c574a2342 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=8c3a5686fa7924d4ddacc9e5599c509e5db9ef3f Log: Tweaks Changed paths: M phpce18.html M slides/intro/php74_2018.xml Diff: diff --git a/phpce18.html b/phpce18.html index 5e6856c..b77605f 100644 --- a/phpce18.html +++ b/phpce18.html @@ -804,15 +804,13 @@ $ cat /tmp/output | stackcollapse-phpspy.pl | flamegraph.pl > flame.svg</code }</code></pre> </section> <section id="php74_preload"> - <p class="p" style="font-size:1.1em;text-align:left;">Opcache Preloading</p> -<p class="example">a.php</p> + <p class="p" style="font-size:1em;text-align:left;">Opcache Preloading</p> <pre><code data-trim style="font-size:1.1em;" >class A { function __construct() { echo "A"; } }</code></pre> -<p class="example">script.php</p> - <pre><code data-trim style="font-size:1.1em;" >spl_autoload_register('__load'); + <pre><code data-trim style="font-size:1em;" >spl_autoload_register('__load'); function __load($c) { echo "Autoloader called for $c\n"; require "/home/rasmus/".strtolower($c).".php"; @@ -824,9 +822,7 @@ Autoloader called for A A</code></pre> </section> <section id="php74_preload2"> -<p class="example">preload.php</p> - <pre><code data-trim style="font-size:1.1em;" ><?php -function preload($filename) { + <pre><code data-trim style="font-size:1em;" >function preload($filename) { if (!opcache_compile_file($filename)) { trigger_error("Preloading Failed", E_USER_ERROR); } diff --git a/slides/intro/php74_2018.xml b/slides/intro/php74_2018.xml index 7d5038e..665086f 100644 --- a/slides/intro/php74_2018.xml +++ b/slides/intro/php74_2018.xml @@ -18,9 +18,9 @@ class User { ]]></example> <break lines="1" section="php74_preload"/> -<blurb fontsize="1.1em" align="left">Opcache Preloading</blurb> +<blurb fontsize="1em" align="left">Opcache Preloading</blurb> -<example fontsize="1.1em" result='0' title="a.php" type=""><![CDATA[<?php +<example fontsize="1.1em" result='0' title="" type=""><![CDATA[<?php class A { function __construct() { echo "A"; @@ -28,7 +28,7 @@ class A { } ]]></example> -<example fontsize="1.1em" result='0' title="script.php" type=""><![CDATA[<?php +<example fontsize="1em" result='0' title="" type=""><![CDATA[<?php spl_autoload_register('__load'); function __load($c) { echo "Autoloader called for $c\n"; @@ -46,8 +46,7 @@ A <break lines="1" section="php74_preload2"/> -<example fontsize="1.1em" result='0' title="preload.php" type=""><![CDATA[<?php -<?php +<example fontsize="1em" result='0' title="" type=""><![CDATA[<?php function preload($filename) { if (!opcache_compile_file($filename)) { trigger_error("Preloading Failed", E_USER_ERROR);