RESOLVED FIXED 4420
make border drawing faster by removing code to alloc/dealloc NSBezierPath
https://bugs.webkit.org/show_bug.cgi?id=4420
Summary make border drawing faster by removing code to alloc/dealloc NSBezierPath
Darin Adler
Reported 2005-08-13 22:58:59 PDT
There are some borders in the JavaScript iBench that are drawn with bezier path code. The allocation and deallocation of NSBezierPath is showing on the profile. We should fix that.
Attachments
patch to use CoreGraphics directly instead of using NSBezierPath (2.99 KB, patch)
2005-08-13 23:00 PDT, Darin Adler
mjs: review+
Darin Adler
Comment 1 2005-08-13 23:00:17 PDT
Created attachment 3368 [details] patch to use CoreGraphics directly instead of using NSBezierPath
Darin Adler
Comment 2 2005-08-13 23:00:40 PDT
I measured a 1% improvement on the benchmark with the patch.
Maciej Stachowiak
Comment 3 2005-08-14 02:00:29 PDT
Comment on attachment 3368 [details] patch to use CoreGraphics directly instead of using NSBezierPath CGContextStrokeLineSegments could potentially be even faster than this, at least when not filling the path.
Note You need to log in before you can comment on or make changes to this bug.