WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
95909
Refactoring SVG's Path datastructures
https://bugs.webkit.org/show_bug.cgi?id=95909
Summary
Refactoring SVG's Path datastructures
Philip Rogers
Reported
2012-09-05 16:45:22 PDT
SVGPathByteStream is a datastructure with the following performance characteristics: insert - O(n) append - O(n) replace - O(n) modify any element - O(n) In SVGPathUtilities we have methods for syncing SVGPathSegLists, SVGPathByteStream, and the string representation of a path. Modifying a PathSeg from a PathSegList requires rebuilding the entire byte stream (with the possible exception of append, see wkbug.com/94048). Once we have a PathSegList, updating the bytestream does not seem like the right approach. Instead, we should use a vector-backed datastructure (insert O(1), append O(1), replace O(1), modify O(1)) or go directly to the Path data itself.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug