Re: Implementing cairo_read_func_t/cairo_write_func_t properly
Bernhard Fischer <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <2748887.7UGKDA1cPj@winnie> |
On Sunday 03 January 2016 18:37:25 Enrico Weigelt, metux IT consult wrote: > On 02.01.2016 20:16, Bernhard Fischer wrote: > > Memory mapping (mmap()) and streaming (independently if buffered or on a > > file descriptor) are two completely different approaches. > > Yeah, but I wonder, what's the benefit of streaming here at all. > > The only benefit I see would be scenarios with quite large files / > streams where we already can do something useful with just parts of it. > > Images usually are only useful when already downloaded completely. At > that you dont need streaming anymore, as you already have everything > in memory or on-disk. *) Assume you are doing something on a file within your program and you have it already opened somewhere else... *) You have an open stream in your software but no file name, e.g. a tcp stream, an unlinked file, a pipe to another process,... -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo