[maemo-developers] GtkPixbuf from Char buffer

From: Eero Tamminen eero.tamminen at nokia.com
Date: Thu Oct 16 17:46:45 EEST 2008
Hi,

ext gary liquid wrote:
> have you considered caching the downloaded file to disk and reading from
> there using the standard function?
> 
> This would give you the obvious benefit of allowing offline usage and faster
> requerying.
> There isn't an infinite amount of memory available and having to download
> images everytime could cause user angst.
> 
> I believe /tmp is mapped to real memory and not the flash drive, so would
> not cause real problems and wouldn't be much slower  (someone can confirm
> this?)

This is a no-no.  The system /tmp is a RAM-disk with 1/2MB max size
and it's used by all applications.  It's intended for _small_ (few KB)
temporary files.  For larger or more permanent[1] things one should
use $TMPDIR i.e. /var/tmp which is on Flash.

[1] See the Filesystem Hierarchy Standard:
	http://www.pathname.com/fhs/


> Even though it may require a little bit more time to organise a cache file
> plan, it may be worth it in the end?


	- Eero

More information about the maemo-developers mailing list