[Cairo] Stroking problem

Carl Worth cworth at east.isi.edu
Fri Jul 25 12:32:05 PDT 2003


On Jul 25, Keith Packard wrote:
 > Around 12 o'clock on Jul 25, Soorya Kuloor wrote:
 > 
 > > I did a runtime profile and found that function
 > > _line_segs_intersect_ceil() in file cairo_traps.c goes into an almost
 > > infinite loop at the while loop at line 416.
 > 
 > Cool -- it didn't infinite loop.  We just rewrote that code to make sure 
 > it was correct and are doing a linear search at sub-pixel resolution.  
 > Changing that to a faster search should solve the performance
 > problem.

Keith just did the error analysis and determined that the "search" is
actually just a conditional increment.

The fix is committed now.

-Carl





More information about the cairo mailing list