<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: PHP: &quot;Konstantes&quot; Array in PHP - Benchmark</title>
	<atom:link href="http://juliusbeckmann.de/blog/konstantes-array-in-php-benchmark.html/feed" rel="self" type="application/rss+xml" />
	<link>http://juliusbeckmann.de/blog/konstantes-array-in-php-benchmark.html</link>
	<description>Ich bin nicht verrückt, nur technisch begabt ...</description>
	<lastBuildDate>Fri, 26 Sep 2014 12:04:55 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: Theo</title>
		<link>http://juliusbeckmann.de/blog/konstantes-array-in-php-benchmark.html/comment-page-1#comment-1445</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Mon, 14 Nov 2011 20:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=212#comment-1445</guid>
		<description>Wie sieht es mit einer statischen Variante aus? Dabei sollte das Array nur einmal erzeugt werden und bei wiederholten Aufrufen schneller zurückgeliefert werden:

function get_const_array_static() {
static $arr = array(1, 2, 3, 4, 5, 6);
return $arr;
}</description>
		<content:encoded><![CDATA[<p>Wie sieht es mit einer statischen Variante aus? Dabei sollte das Array nur einmal erzeugt werden und bei wiederholten Aufrufen schneller zurückgeliefert werden:</p>
<p>function get_const_array_static() {<br />
static $arr = array(1, 2, 3, 4, 5, 6);<br />
return $arr;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Julius</title>
		<link>http://juliusbeckmann.de/blog/konstantes-array-in-php-benchmark.html/comment-page-1#comment-429</link>
		<dc:creator>Julius</dc:creator>
		<pubDate>Mon, 17 Aug 2009 14:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=212#comment-429</guid>
		<description>Ich lege recht viel Wert auf Performance und muss dir leider sagen dass foreach() wesentlich schneller ist. Schau dir das mal an: http://juliusbeckmann.de/blog/php-foreach-vs-while-vs-for-the-loop-battle.html</description>
		<content:encoded><![CDATA[<p>Ich lege recht viel Wert auf Performance und muss dir leider sagen dass foreach() wesentlich schneller ist. Schau dir das mal an: <a href="http://juliusbeckmann.de/blog/php-foreach-vs-while-vs-for-the-loop-battle.html" rel="nofollow">http://juliusbeckmann.de/blog/php-foreach-vs-while-vs-for-the-loop-battle.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Fr33z3m4n</title>
		<link>http://juliusbeckmann.de/blog/konstantes-array-in-php-benchmark.html/comment-page-1#comment-428</link>
		<dc:creator>Fr33z3m4n</dc:creator>
		<pubDate>Mon, 17 Aug 2009 13:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=212#comment-428</guid>
		<description>Hallo,

vielen Dank für dieses kurzen Benchen.

Wenn du doch aber viel Wert auf Performance legst, dann mach anstatt foreach lieber ein while schleife, in der du dann das Array durchläufst.

Denn Foreach ist langsamer als while/for

mfg
Fr33z3m4n</description>
		<content:encoded><![CDATA[<p>Hallo,</p>
<p>vielen Dank für dieses kurzen Benchen.</p>
<p>Wenn du doch aber viel Wert auf Performance legst, dann mach anstatt foreach lieber ein while schleife, in der du dann das Array durchläufst.</p>
<p>Denn Foreach ist langsamer als while/for</p>
<p>mfg<br />
Fr33z3m4n</p>
]]></content:encoded>
	</item>
</channel>
</rss>
