> Andreas Beck <[EMAIL PROTECTED]> writes:

> > while(write(handle,buffer,read(handle,buffer,bufsize))); 

> But there you use 'buffer' as temporary storage, which is exactly
> what I want to avoid. Or do you intend some non-obvious magic?

I mean a _small_ buffer for that. We will need _some_ kind of buffer
anyway, when we want to pass data around. But the idea is, that like with
a filecopy, you don't do malloc(filesize(bla));, but rather use a reasonably
sized buffer as interim storage and the call read and write in a loop.

I think that is the best compromise between speed (single pixels would use
less memory, but it would crawl) and memory usage.

Regarding LibGFP I can send you a draft for the external API that was made
up by me and C.Egger in the meantime. Interested ?

CU, ANdy

-- 
= Andreas Beck            | Email: <[EMAIL PROTECTED]>      =

Reply via email to