<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx</link><description>This is a follow up to Jumping Into C++ , a first-hand account of my experiences writing my first modern C++ application. It was a simple exercise that turned out to be not so simple and much more educational than I imagined thanks to the community. </description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10391308</link><pubDate>Tue, 05 Feb 2013 18:59:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10391308</guid><dc:creator>Eric Battalio</dc:creator><description>&lt;p&gt;Update: Stephan (STL) talks about do/while in his latest Core C++ video on Channel 9. Check it out at &lt;a rel="nofollow" target="_new" href="http://channel9.msdn.com/Series/C9-Lectures-Stephan-T-Lavavej-Core-C-/Stephan-T-Lavavej-Core-Cpp-8-of-n"&gt;channel9.msdn.com/.../Stephan-T-Lavavej-Core-Cpp-8-of-n&lt;/a&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10391308" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10390218</link><pubDate>Fri, 01 Feb 2013 11:33:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10390218</guid><dc:creator>grumpy</dc:creator><description>&lt;p&gt;@ildjarn: another quite important point: sync_with_stdio does nothing for file manipulation. It disables synchronization of the *standard* streams (stdin/stdout/stderr), but for file streams, it makes zero difference. If you think that setting sync_with_stdio to false magically solves all the performance problems with iostream, it sounds like cargo-cult programming to me. You haven&amp;#39;t investigated whether what you&amp;#39;re doing actually has an effect, you&amp;#39;re just assuming it makes teh problem go away. :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10390218" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388955</link><pubDate>Mon, 28 Jan 2013 21:59:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388955</guid><dc:creator>Diego Dagum</dc:creator><description>&lt;p&gt;Not a bad idea to count with concrete performance requirements before dropping a meant-to-be-used library in favor of another one, just because the latter is faster.&lt;/p&gt;
&lt;p&gt;The risk otherwise is to overcomplicate an approach to get a benefit that could be more apparent than real.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388955" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388640</link><pubDate>Sun, 27 Jan 2013 10:20:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388640</guid><dc:creator>grumpy</dc:creator><description>&lt;p&gt;@ildjarn have you actually benchmarked this? Because every test I&amp;#39;ve made has showed iostreams to be monstrously slow (easily a 5x over stdio). Of course, often performance doesn&amp;#39;t matter, and type-safety is very nice, but the iostreams API is also so, well, messed-up that I don&amp;#39;t think safety is much of an argument for using it. There&amp;#39;s far too much to trip you up, far too much you can get wrong. It&amp;#39;s just not a very good library, and as far as performance goes, the half-arsed &amp;quot;let&amp;#39;s not even *try* to make it fast&amp;quot; implementation certainly doesn&amp;#39;t help. (In fairness, it&amp;#39;s not just the MSVC implementation that&amp;#39;s slow. The same can be said of GCC&amp;#39;s. I haven&amp;#39;t tested Clang&amp;#39;s, but I wouldn&amp;#39;t be surprised to see that perform like crap as well)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388640" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388453</link><pubDate>Fri, 25 Jan 2013 22:47:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388453</guid><dc:creator>ildjarn</dc:creator><description>&lt;p&gt;&amp;gt; About reading a file using iostream. Don&amp;#39;t. It is slower and difficult to manage for complicated file formats.&lt;/p&gt;
&lt;p&gt;I could not disagree more. It&amp;#39;s not (much) slower if you call `std::ios_base::sync_with_stdio(false)` first, and more importantly, it&amp;#39;s *type-safe* – throwing away type-safety in C++ is the absolute last thing you want to do. If performance/complexity is that much of a concern, that&amp;#39;s what Boost.Spirit is for . :-]&lt;/p&gt;
&lt;p&gt;(And I know people will be inclined to balk at Spirit as a solution to complexity, but don&amp;#39;t bother – after the initial learning curve, it&amp;#39;s extremely easy to maintain very complicated file formats, both generation and parsing, and the runtime performance is unparalleled.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388453" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388366</link><pubDate>Fri, 25 Jan 2013 17:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388366</guid><dc:creator>Xiang Fan</dc:creator><description>&lt;p&gt;One possible reason (implicit flush) for slow iostream:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/xiangfan/archive/2012/01/12/speed-up-iostream.aspx"&gt;blogs.msdn.com/.../speed-up-iostream.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388366" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388353</link><pubDate>Fri, 25 Jan 2013 16:22:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388353</guid><dc:creator>Eric Battalio</dc:creator><description>&lt;p&gt;Andrew, stdio. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388353" width="1" height="1"&gt;</description></item><item><title>re: After the Jump</title><link>http://blogs.msdn.com/b/vcblog/archive/2013/01/24/after-the-jump.aspx#10388162</link><pubDate>Fri, 25 Jan 2013 01:13:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10388162</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;What will you use instead of iostream?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10388162" width="1" height="1"&gt;</description></item></channel></rss>