[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] Creating A Cairo Context Seems Quite Quick
From:       Lawrence D'Oliveiro <ldo () geek-central ! gen ! nz>
Date:       2015-04-19 8:42:12
Message-ID: 20150419204212.7a47af8a () theon ! geek-central ! gen ! nz
[Download RAW message or body]

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
cairo@cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic