<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラム</anon>
    <anon>Ruby</anon>
  </categories>
  <description>ふと考えてみたんだけど あるファイル（以下A）から特定の値（以下X）が入っている行だけ抽出して、その結果を処理したい、という時はどっちが早いのか。どっちも大差ないものなんだろうか。 ※ただし、プログラムは Ruby から起動しなくてはいけないものとする Ruby からキックされ、systemメソッド（システムコール）でAから grep で抜き出した結果をファイルへ出力。その結果のファイルを Ruby で読み込む Ruby で A を読み込み、 if 文で該当行だけ抜き出して、必要な行のみ取得する。 これってどっちが早いんだろうね。ネイティブなコマンドを使ってる分、1. の方がはやそうだけど、処…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20071106%2F1194369539&quot; title=&quot;これってどっちが早いんだろう - すがブロ&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>2007-11-06 02:18:59</published>
  <title>これってどっちが早いんだろう</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20071106/1194369539</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
