<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>プログラミングPHP P342より。スクリプトの実行時のメモリ使用量を軽減させるには、以下のようなテクニックがある。 数値が使用できる場面では、可能な限り文字列ではなく数値を利用する for($i=&quot;0&quot;; $i &lt; &quot;10&quot;; $i++) // 悪い例 for($i=0; $i &lt; 10; $i++) // 良い例 大きな文字列を扱う場合は、使い終えたらその変数に空文字列を代入する。これによりそれまで使用していたメモリが解放されて再利用できるようになる 外部のファイルは、必要なときだけ読み込むようにする。includeやrequireではなく、include_onceやrequire_onc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120401%2F1333230959&quot; title=&quot;メモリの使用量の最適化 - by shigemk2&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://ecx.images-amazon.com/images/I/41Bf6ZV1fRL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-01 06:55:59</published>
  <title>メモリの使用量の最適化</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120401/1333230959</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
