<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>frontline</author_name>
  <author_url>https://blog.hatena.ne.jp/frontline/</author_url>
  <blog_title>misc.log</blog_title>
  <blog_url>https://www.backyrd.net/</blog_url>
  <categories>
    <anon>業務日誌.NET</anon>
  </categories>
  <description>取得した文字列がカラッポであるかどうかの判定なんてのは業務処理でありがちな判断文ですが、これもちょっとしたコツで速度差が大きくでます。まず、最初に「トリムした文字列が空文字(String.Empty)でないことの判定」を見てみましょう。 約9,000μセカンドです。一方で、「トリムした文字列の長さがゼロでないことの判定」を見てみましょう。これらが処理的には同じ結論に至ることは判りますよね？ 約100μセカンド。90倍の速度差があります。ちょっとした速度差ですが、大量に繰り返されると体感できる速度差の原因になりますので注意が必要です。 で、上記の結果でもう1つ判ることが。If文の条件式で行われて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.backyrd.net%2Fentry%2F20120428%2Fp2&quot; title=&quot; 空文字比較と文字長ゼロ比較の速度差 - misc.log&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>http://cdn-ak.f.st-hatena.com/images/fotolife/f/frontline/20120428/20120428123524.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-28 00:00:01</published>
  <title> 空文字比較と文字長ゼロ比較の速度差</title>
  <type>rich</type>
  <url>https://www.backyrd.net/entry/20120428/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
