<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fgshun</author_name>
  <author_url>https://blog.hatena.ne.jp/fgshun/</author_url>
  <blog_title>銀月の符号</blog_title>
  <blog_url>https://fgshun.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>bit 単位でデータが詰め込まれているバイナリデータを眺める機会があったので、なんとなく「Python ビット演算」でググッてみた。そんな日のこと。すると Python の int 型における各種演算速度を実測した人を発見。Pythonの四則演算とビット論理演算の速度 - yattの日記 。この記事の最初の１文を読んで、自分が思い浮かべた予想は「加減算とビット演算は同じくらいの速さ、乗算除算は少し劣る」というもの。しかし、その結果は、「ビット演算より加減算の方が早い」、とのこと。ちなみに自分の持っていた前知識はこんな感じ。下に行くほど自信なし。 Python の int はオブジェクト。不変型…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20081125%2F1227628670&quot; title=&quot; Pythonの四則演算とビット論理演算の速度を自分でも測ってみた - 銀月の符号&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-11-25 00:57:50</published>
  <title> Pythonの四則演算とビット論理演算の速度を自分でも測ってみた</title>
  <type>rich</type>
  <url>https://fgshun.hatenablog.com/entry/20081125/1227628670</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
