Opened 12 years ago

Closed 12 years ago

#2403 closed enhancement (fixed)

[ccla][patch] Performance improvement for gfx.path

Reported by: eddie.huang@… Owned by: Eugene Lazutkin
Priority: high Milestone:
Component: gfx (svg+vml) Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

Speed up _updateWithSegment, _setPath by a factor of around 15x in Firefox for paths with large number of segments.

Change: Changed concat() to a loop of push() in _updateWithSegment

Allows passing in of array directly to setPath, skipping regex parsing. Faster clearing of args array (args.length=0) in the loop.

Attachments (1)

gfxpath.patch (1.1 KB) - added by guest 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by guest

Attachment: gfxpath.patch added

comment:1 Changed 12 years ago by Eugene Lazutkin

Status: newassigned

What is your company name on CCLA?

comment:2 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [7813]) gfx: fixes #2403

Note: See TracTickets for help on using tickets.