[cairo] Analytical curve bounds

Koen Kooi k.kooi at student.utwente.nl
Mon Dec 29 13:16:24 PST 2008


On 29-12-08 21:46, Behdad Esfahbod wrote:
> Kalle Vahlman wrote:
>> The fills seem legit though, since there's plenty of them in the
>> positive side and the new code does get called in them in abundance.
>> For example, during fill_solid_rgb_over-64 I counted (well, wc did ;)
>> 405 calls to _cairo_spline_bound().
>>
>> So looks like the new code should be a definitive win.
>
> Great.  Would be even better if you test with master as I pushed some
> optimization in the code to avoid calling sqrt in most cases.  That may be
> loss with modern processors, donno.

Here are some notes about sqrt() implementations on various hardware 
platforms:

http://www.qoheleth.uklinux.net/blog/?p=139

dunno how relevant it is to your case, but 2 years ago it was pretty 
exciting :)

regards,

Koen



More information about the cairo mailing list