[cairo] memory leak in _cairo_pattern_create_solid

Behdad Esfahbod behdad at behdad.org
Tue Oct 16 15:08:48 PDT 2007


On Tue, 2007-10-16 at 21:39 +0200, BJörn Lindqvist wrote:

> Have you profiled it? I can't imagine the function takes more than 1
> ms or so. 

"Don't do unnecessary work" doesn't need a profile as proof.  Well, it
does, to make sure work needed to do it (or rather, not do it) is worth
it.  But when work needed is zero, you really can't beat it.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list