[cairo] Creating A Cairo Context Seems Quite Quick

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sun Apr 19 01:42:12 PDT 2015


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.


More information about the cairo mailing list