<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wie langsam und suboptimal ist die STL wirklich?]]></title><description><![CDATA[<p>Abgesehen von vielen Negativen Meinungen über C++ in den Kommentaren dieses Artikels: <a href="http://www.osnews.com/comments/20381?view=flat&amp;sort=&amp;threshold=0" rel="nofollow">http://www.osnews.com/comments/20381?view=flat&amp;sort=&amp;threshold=0</a>,<br />
wurde auch explizit erwähnt das die STL veraltet und langsam sei. Dabei wurde diese Implementierung als Referenz genannt: <a href="http://www.ultimatepp.org/www" rel="nofollow">http://www.ultimatepp.org/www</a><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>u</mi><mi>p</mi><mi>p</mi><mi>w</mi><mi>e</mi><mi>b</mi></mrow><annotation encoding="application/x-tex">uppweb</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">u</span><span class="mord mathit">p</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit">b</span></span></span></span>comparison$en-us.html</p>
<p>Jetzt würde mich interessieren wie 'schlecht' die STL wirklich ist und welche sinnvolleren Alternative es gäbe (innerhalb von C++ natürlich).</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/224722/wie-langsam-und-suboptimal-ist-die-stl-wirklich</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 12:06:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/224722.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Oct 2008 10:55:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 11:00:08 GMT]]></title><description><![CDATA[<p>Abgesehen von vielen Negativen Meinungen über C++ in den Kommentaren dieses Artikels: <a href="http://www.osnews.com/comments/20381?view=flat&amp;sort=&amp;threshold=0" rel="nofollow">http://www.osnews.com/comments/20381?view=flat&amp;sort=&amp;threshold=0</a>,<br />
wurde auch explizit erwähnt das die STL veraltet und langsam sei. Dabei wurde diese Implementierung als Referenz genannt: <a href="http://www.ultimatepp.org/www" rel="nofollow">http://www.ultimatepp.org/www</a><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>u</mi><mi>p</mi><mi>p</mi><mi>w</mi><mi>e</mi><mi>b</mi></mrow><annotation encoding="application/x-tex">uppweb</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">u</span><span class="mord mathit">p</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit">b</span></span></span></span>comparison$en-us.html</p>
<p>Jetzt würde mich interessieren wie 'schlecht' die STL wirklich ist und welche sinnvolleren Alternative es gäbe (innerhalb von C++ natürlich).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598697</guid><dc:creator><![CDATA[pospiech]]></dc:creator><pubDate>Tue, 14 Oct 2008 11:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 11:07:38 GMT]]></title><description><![CDATA[<p>Was ist denn &quot;die STL&quot;? Da sind jede Menge Sachen drin. Die meisten Container sind von der Performance, vorausgesetzt, man übersetzt im Release-Mode, mit Standard-C Arrays/Konstrukten gleichwertig.<br />
Mal ganz davon abgesehen gibt es auch nicht &quot;die STL&quot;. Jeder Compilerhersteller hat unterschiedliche Implementierungen. Solange sie sich mit den im Standard definierten Anforderungen decken, ist das auch okay.<br />
Das einzige, was man der STL vielleicht vorwerfen kann, ist das viele Klassentemplates etwas zu fette Interfaces habe. Freie Funktionen die man auf alle Container anwenden kann, wären vielleicht besser gewesen. Das extremste Beispiel hierfür ist wohl std::basic_string&lt;&gt;...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598705</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Tue, 14 Oct 2008 11:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 11:15:35 GMT]]></title><description><![CDATA[<p>Für mich relevant wäre wohl die Implementierung von Microsoft (Visual Studio 2005), Qt4 (ist zwar nicht direkt STL, aber sehr ähnlich) und was unter Linux mit gcc verfügbar ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598711</guid><dc:creator><![CDATA[pospiech]]></dc:creator><pubDate>Tue, 14 Oct 2008 11:15:35 GMT</pubDate></item><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 11:18:10 GMT]]></title><description><![CDATA[<p>Wo hast Du denn einen Performanceengpass?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598714</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Tue, 14 Oct 2008 11:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 11:48:01 GMT]]></title><description><![CDATA[<p>Naja ...</p>
<p><a href="http://www.ultimatepp.org/www" rel="nofollow">http://www.ultimatepp.org/www</a><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>u</mi><mi>p</mi><mi>p</mi><mi>w</mi><mi>e</mi><mi>b</mi></mrow><annotation encoding="application/x-tex">uppweb</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">u</span><span class="mord mathit">p</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit">b</span></span></span></span>comparison$en-us.html schrieb:</p>
<blockquote>
<p>In order to demonstrate advantages of Ultimate++ (!!!),<br />
we (!!!) have reimplemented some examples of other libraries.</p>
</blockquote>
<p>Wo soooo viel Absicht durchscheint, bezweifele ich mal die Objektivität...</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598730</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Tue, 14 Oct 2008 11:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Wie langsam und suboptimal ist die STL wirklich? on Tue, 14 Oct 2008 13:17:31 GMT]]></title><description><![CDATA[<p>Simon2 schrieb:</p>
<blockquote>
<p>Naja ...</p>
<p><a href="http://www.ultimatepp.org/www" rel="nofollow">http://www.ultimatepp.org/www</a><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>u</mi><mi>p</mi><mi>p</mi><mi>w</mi><mi>e</mi><mi>b</mi></mrow><annotation encoding="application/x-tex">uppweb</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit">u</span><span class="mord mathit">p</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.02691em;">w</span><span class="mord mathit">e</span><span class="mord mathit">b</span></span></span></span>comparison$en-us.html schrieb:</p>
<blockquote>
<p>In order to demonstrate advantages of Ultimate++ (!!!),<br />
we (!!!) have reimplemented some examples of other libraries.</p>
</blockquote>
<p>Wo soooo viel Absicht durchscheint, bezweifele ich mal die Objektivität...</p>
<p>Gruß,</p>
<p>Simon2.</p>
</blockquote>
<p>Nach kurzem Überfliegen des Benchmarkcodes würde ich vermuten, dass der Geschwindigkeitsgewinn zum größten Teil der fehlen Move-Semantik im STL-Code geschuldet ist. Ab gcc 4.3 unterstützt der Compiler auch rvalue-Refernzen - ich weiß aber nicht, ob die mitgelieferte Standardbibliothek diesbezüglich bereits wenigstens rudimentär erweitert wurde. Es wäre zweifellos interessant, wie groß der verbleibende Geschwindigkeitsvorteil dann ist.<br />
Ein paar Kleinigkeiten würde ich bemängeln (etwa dass das STL-map-Objekt nicht lokal zu BenchSTL ist, im Gegensatz zur NTL-Version; das könnte ein zusätzliches Register kosten was bei x86 teuer wäre - ich bezweifle aber, dass das einen Geschwindigkeitsgewinn dieser Größenordnung erklären würde). SO oder so ist der angewendete Stringalgorithmus ineffizient und dort dürfte der größte Teil der Zeit verschwendet werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1598805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1598805</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Tue, 14 Oct 2008 13:17:31 GMT</pubDate></item></channel></rss>