<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dora119</author_name>
  <author_url>https://blog.hatena.ne.jp/dora119/</author_url>
  <blog_title>ややプログラム紀行</blog_title>
  <blog_url>https://dora119.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>Vectorとかそういう系の動作速度はよく話題になりますが、僕も描画回りのプログラミングをしててその問題に当たりました Push関数でデータをためていって、最後に一気に描画っていうスタイルなんですが、どうもデータをlistに積んでるところで処理が遅くなってるようです 調べてみたらすぐに検証してるサイトがありました C++で大規模な配列追記のパフォーマンス 見てみると、listはvectorとかに比べて遅いですね よく「listは挿入が速い」なんていわれるんで勘違いしがちですが、要素の間への挿入は速いけれど、末尾への挿入はvectorとかのほうが全然速いようです これを読んでからvectorを使…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdora119.hateblo.jp%2Fentry%2F2014%2F10%2F13%2F215859&quot; title=&quot;Vectorの再利用 - ややプログラム紀行&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>2014-10-13 21:58:59</published>
  <title>Vectorの再利用</title>
  <type>rich</type>
  <url>https://dora119.hateblo.jp/entry/2014/10/13/215859</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
