Re: GtkPixbuf from Char buffer
- From: Eero Tamminen <eero tamminen nokia com>
- To: ext gary liquid <liquid gmail com>
- Cc: arto karppinen iki fi, maemo-developers maemo org, gtk-app-devel-list gnome org
- Subject: Re: GtkPixbuf from Char buffer
- Date: Thu, 16 Oct 2008 17:46:45 +0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]