[Webkit-unassigned] [Bug 154903] Vector<Attribute> in HTMLToken, AtomicHTMLToken, and HTMLStackItem should have inline capacity
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 2 10:25:51 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=154903
--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to comment #2)
> Before making this change we should be sure to understand the performance of
> moving a Vector with inline capacity vs. the performance of moving a Vector
> with no inline capacity. We will definitely speed things up by avoiding a
> heap allocation for each Vector when creating it, but we might incur a cost
> when moving the vector between objects.
>
> If we are copying rather than moving, then I suppose itâs guaranteed to be a
> win.
We're always copying these vectors :( I'm all ears if you can think of a way to avoid copying. It's really silly but I haven't quite figured out how to untangle the dependency between lifetimes of these objects yet.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160302/9d67c438/attachment.html>
More information about the webkit-unassigned
mailing list