[Webkit-unassigned] [Bug 188882] New: String.concat() significantly slower than '+' operator
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 23 04:23:27 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188882
Bug ID: 188882
Summary: String.concat() significantly slower than '+' operator
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nickshanks at nickshanks.com
When String.prototype.concat() and String.prototype.join() have not been modified from their initial values, promotion of their arguments to strings and concatenation of those strings should be nearly as fast as the '+' operator with one string operand (which also has to promote the other operand). This will allow functional composition to be performant.
See https://jsperf.com/concat-vs-plus-vs-join-2
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180823/d5c4ddb8/attachment.html>
More information about the webkit-unassigned
mailing list