<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuoishimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuoishimoto/</author_url>
  <blog_title>atsuoishimoto's diary</blog_title>
  <blog_url>https://atsuoishimoto.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>たまに、「Pythonの高速化」なんてブログを見かけることがある。書いてあるのは、たいてい s = 0 for i in list_of_ints: s += i と書くより、 s = sum(list_of_ints) のほうが速い！なので sum() 使おう！とかだ。 たしかに、sum() は速い。Pythonインタープリタによるループの繰り返しを行わず、高速なC言語による処理が行われるためだ。特に、リストやタプルが引数に指定されている場合、さらに高速に実行できるように特別扱いされている。 100,000,000個の整数のリストで処理時間を計測してみると、for ループ版では 3.5秒、s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F2019%2F01%2F18%2F180020&quot; title=&quot;Pythonの高速化？ - atsuoishimoto&amp;#39;s diary&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>2019-01-18 18:00:20</published>
  <title>Pythonの高速化？</title>
  <type>rich</type>
  <url>https://atsuoishimoto.hatenablog.com/entry/2019/01/18/180020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
