<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katzchang</author_name>
  <author_url>https://blog.hatena.ne.jp/katzchang/</author_url>
  <blog_title>@katzchang.contexts</blog_title>
  <blog_url>https://katzchang.hatenadiary.org/</blog_url>
  <categories>
    <anon>java</anon>
    <anon>設計論</anon>
  </categories>
  <description>例外処理はパフォーマンスが低下するという話がよくあるので、確かめてみた。メソッド処理でエラーが起こった場合、返却値としてステータスコードを返すパターンと、例外を投げるパターンで処理時間を計測した。で、下で示したコードで検証したところ、エラー発生時の処理コストはステータスコードを返すパターンの方が処理時間は少なかったけど、エラーが発生しない場合は例外処理を使うパターンの方が処理時間は少なかったという結果となった。この検証では、パフォーマンス上の理由から例外処理機構を積極的に使うべきではないというのは根拠が薄いという結論です。厳密には期待されるエラー処理回数と正常処理回数の割合から採用を選ぶべきと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatzchang.hatenadiary.org%2Fentry%2F20081021%2Fp1&quot; title=&quot;例外処理は処理コストが掛かるらしいことを確かめようとしたら、意外とそうでもなかった話 - @katzchang.contexts&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-10-21 00:00:01</published>
  <title>例外処理は処理コストが掛かるらしいことを確かめようとしたら、意外とそうでもなかった話</title>
  <type>rich</type>
  <url>https://katzchang.hatenadiary.org/entry/20081021/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
