Bug 4420

Summary: make border drawing faster by removing code to alloc/dealloc NSBezierPath
Product: WebKit Reporter: Darin Adler <darin>
Component: WebKit Misc.Assignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Enhancement    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
patch to use CoreGraphics directly instead of using NSBezierPath mjs: review+

Description Darin Adler 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.
Comment 1 Darin Adler 2005-08-13 23:00:17 PDT
Created attachment 3368 [details]
patch to use CoreGraphics directly instead of using NSBezierPath
Comment 2 Darin Adler 2005-08-13 23:00:40 PDT
I measured a 1% improvement on the benchmark with the patch.
Comment 3 Maciej Stachowiak 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.