[cairo] perf: long dashed lines

Vladimir Vukicevic vladimir at pobox.com
Tue Feb 5 16:33:35 PST 2008


One more...

This is somewhat minor speed-wise, but it may help a lot more on FPU- 
less platforms.  If the line segment we're dashing is entirely out of  
bounds, just run the dasher through the loop without calculating each  
individual dash segment.  (This could be further optimized by figuring  
out the total length of the dash pattern, figuring out the remainder  
from 'remain', and just running with that bit instead of looping over  
the entire line segment, but that's going to be an even smaller win.)

     - Vlad


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-stroke-3.patch
Type: application/octet-stream
Size: 2534 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080205/e065a60a/attachment.obj 
-------------- next part --------------



More information about the cairo mailing list