<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakh</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakh/</author_url>
  <blog_title>純粋関数型雑記帳</blog_title>
  <blog_url>https://tanakh.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>はじめに C++のstreamはとても良くできていて、これを用いたライブラリを作りたいのだけど、 本当に(主にパフォーマンス的な理由で)大丈夫なのとかそういう話。 初めにお断りしておきますが、以下の内容はすべてlinux+gcc4.3での話です。 streamは遅い ふつうにistreamからget()して、ostreamにputしてるとめちゃくちゃ遅い。 C言語のgetchar, putcharより10進数で1.5桁ぐらい遅いよ。 istream::readとかででかいブロック読めば大丈夫なのだけど、 細かい単位で読みたいことの方が多いよね。 そういうわけで、そういう場合にも速く転送すること…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakh.hatenablog.com%2Fentry%2F20081223%2Fp1&quot; title=&quot;C++のstreamの転送速度を調べる - 純粋関数型雑記帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-23 00:00:01</published>
  <title>C++のstreamの転送速度を調べる</title>
  <type>rich</type>
  <url>https://tanakh.hatenablog.com/entry/20081223/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
