com presentations: Tweak: phpday16.html slides/intro/php7_t uning.xml

[email protected] (Rasmus Lerdorf) Fri, 13 May 2016 06:13:39 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    b1adf275c4bb048be3e85491f72091a7959ae73b
Author:    Rasmus Lerdorf <[email protected]>         Fri, 13 May 2016 08:13:39 +0200
Parents:   85a647422615659ab07d1dbfffde57ff90e24f7f
Branches:  master

Link:       http://git.php.net/?p=presentations.git;a=commitdiff;h=b1adf275c4bb048be3e85491f72091a7959ae73b

Log:
Tweak

Changed paths:
  M  phpday16.html
  M  slides/intro/php7_tuning.xml


Diff:
diff --git a/phpday16.html b/phpday16.html
index 8b3ab57..e0981a3 100644
--- a/phpday16.html
+++ b/phpday16.html
@@ -558,8 +558,8 @@ $bytes = random_bytes(10);
 
 var_dump( $int );
 var_dump( bin2hex($bytes) );</code></pre>
-		<pre class="output" style="font-size:1.2em;">int(-306)
-string(20) "9873ab7dc8a54e860556"
+		<pre class="output" style="font-size:1.2em;">int(259)
+string(20) "8953b9ae2aed4675b644"
 		</pre>		</section>	</section>
 	<section>
 		<section id="perf2014">
@@ -1503,6 +1503,7 @@ HugePages_Free:      300
 HugePages_Rsvd:        0
 HugePages_Surp:        0
 Hugepagesize:       2048 kB</code></pre>
+		<pre><code class="ini" data-trim style="font-size:1.1em;">USE_ZEND_ALLOC_HUGE_PAGES=1 httpd ...</code></pre>
 		</section>
 <section id="php7_tune_realpath">
 		<p class="p" style="font-size:2em;">increase realpath_cache_size</p>
diff --git a/slides/intro/php7_tuning.xml b/slides/intro/php7_tuning.xml
index b309c73..cbedf40 100644
--- a/slides/intro/php7_tuning.xml
+++ b/slides/intro/php7_tuning.xml
@@ -35,6 +35,10 @@ HugePages_Surp:        0
 Hugepagesize:       2048 kB
 ]]></example>
 
+<example fontsize="1.1em" marginleft="7em" result='0' title="" type="ini"><![CDATA[<?php
+USE_ZEND_ALLOC_HUGE_PAGES=1 httpd ...
+]]></example>
+
 <break lines="1" section="php7_tune_realpath"/>
 <blurb fontsize="2em">increase realpath_cache_size</blurb>
 <example fontsize="2em" marginleft="7em" result='0' title="" type="ini"><![CDATA[<?php