<div dir="ltr">i don&#39;t mind being wrong :)<br>thanks Eero, it was the principle more than the specifics I was trying to indicate however.<br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 3:46 PM, Eero Tamminen <span dir="ltr">&lt;<a href="mailto:eero.tamminen@nokia.com">eero.tamminen@nokia.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<div class="Ih2E3d"><br>
<br>
ext gary liquid wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
have you considered caching the downloaded file to disk and reading from<br>
there using the standard function?<br>
<br>
This would give you the obvious benefit of allowing offline usage and faster<br>
requerying.<br>
There isn&#39;t an infinite amount of memory available and having to download<br>
images everytime could cause user angst.<br>
<br>
I believe /tmp is mapped to real memory and not the flash drive, so would<br>
not cause real problems and wouldn&#39;t be much slower &nbsp;(someone can confirm<br>
this?)<br>
</blockquote>
<br></div>
This is a no-no. &nbsp;The system /tmp is a RAM-disk with 1/2MB max size<br>
and it&#39;s used by all applications. &nbsp;It&#39;s intended for _small_ (few KB)<br>
temporary files. &nbsp;For larger or more permanent[1] things one should<br>
use $TMPDIR i.e. /var/tmp which is on Flash.<br>
<br>
[1] See the Filesystem Hierarchy Standard:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.pathname.com/fhs/" target="_blank">http://www.pathname.com/fhs/</a><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Even though it may require a little bit more time to organise a cache file<br>
plan, it may be worth it in the end?<br>
</blockquote>
<br>
<br></div></div><font color="#888888">
 &nbsp; &nbsp; &nbsp; &nbsp;- Eero<br>
</font></blockquote></div><br></div>