<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dekuo-03</author_name>
  <author_url>https://blog.hatena.ne.jp/dekuo-03/</author_url>
  <blog_title>工作と競馬2</blog_title>
  <blog_url>https://dekuo-03.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術メモ#ESP32</anon>
    <anon>技術メモ#Arduino</anon>
    <anon>技術メモ#C/C++</anon>
  </categories>
  <description>Arudinoで、RAMの残りを求める関数として、以下のサイトにavailableMemoryというものが紹介されている。 https://playground.arduino.cc/Code/AvailableMemory/ これは、mallocの戻り値がNULLでなくなる＝確保できるまで1バイトずつサイズを小さくして試すという仕組み。 原理が単純で分かりやすいのだが、ESP-WROOM-32などRAM容量の大きなものに対してそのまま使うと、非常に動作が遅い。また、残り容量次第で計算時間が大きく変化する。 そこで、高速化をしてみた。 mallocの戻り値がNULLでなくなるごとにstepとい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdekuo-03.hatenablog.jp%2Fentry%2F2021%2F02%2F14%2F023322&quot; title=&quot;ArduinoでRAMの残りを求める関数を高速化する - 工作と競馬2&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>2021-02-14 02:33:22</published>
  <title>ArduinoでRAMの残りを求める関数を高速化する</title>
  <type>rich</type>
  <url>https://dekuo-03.hatenablog.jp/entry/2021/02/14/023322</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
