<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>optim-okumura</author_name>
  <author_url>https://blog.hatena.ne.jp/optim-okumura/</author_url>
  <blog_title>OPTiM TECH BLOG</blog_title>
  <blog_url>https://tech-blog.optim.co.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>R&amp;D チームの奥村です。最近シェルスクリプトばっかり書いてます。Beating C with 70 Lines of Go - Ajeet D'Souza を見て気になったので、Python によるテキストファイルの高速な行数カウントを試しました。実験の結果、いくつかの簡単な処理を加えるとことで、ナイーブな実装に比べて、コアの数× 0.9 程度倍の高速化が達成できました。私の環境だと 8 コアなので、処理時間はおおよそ 1/7 で済むようになりました。残念ながら wc -l には一歩届きませんでした。 https://cdn-ak.f.st-hatena.com/images/fotolif…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.optim.co.jp%2Fentry%2F2019%2F12%2F09%2F080000&quot; title=&quot;Beating C with 60 Lines of Python: wc -l (failed) ~Python での行数カウントを手軽に高速化~ - OPTiM TECH BLOG&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>https://cdn-ak.f.st-hatena.com/images/fotolife/o/optim-tech/20191207/20191207092332.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-09 08:00:00</published>
  <title>Beating C with 60 Lines of Python: wc -l (failed) ~Python での行数カウントを手軽に高速化~</title>
  <type>rich</type>
  <url>https://tech-blog.optim.co.jp/entry/2019/12/09/080000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
