Re: Creating A Cairo Context Seems Quite Quick

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Sun, 19 Apr 2015 01:37:50 -0700, Behdad Esfahbod wrote:

> Yes, cairo optimizes for that by caching freed context objects for
> reuse so there's no malloc() overhead.  All that is left is clearing
> the object.

Great! So the moral is: if you need to create temporary context
objects, e.g. for calculation purposes, by all means do so.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.