WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 197765
[JSC] String substring operation should return ropes consistently
https://bugs.webkit.org/show_bug.cgi?id=197765
Summary
[JSC] String substring operation should return ropes consistently
Yusuke Suzuki
Reported
2019-05-09 20:29:14 PDT
[JSC] String substring operation should return ropes consistently
Attachments
Patch
(6.36 KB, patch)
2019-05-09 20:42 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(7.02 KB, patch)
2019-05-10 10:41 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(7.03 KB, patch)
2019-05-10 12:31 PDT
,
Yusuke Suzuki
msaboff
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2019-05-09 20:42:34 PDT
Created
attachment 369541
[details]
Patch
Yusuke Suzuki
Comment 2
2019-05-10 10:04:15 PDT
<
rdar://problem/37689944
>
Yusuke Suzuki
Comment 3
2019-05-10 10:41:38 PDT
Created
attachment 369564
[details]
Patch
Yusuke Suzuki
Comment 4
2019-05-10 12:31:51 PDT
Created
attachment 369580
[details]
Patch
Michael Saboff
Comment 5
2019-05-10 12:45:31 PDT
Comment on
attachment 369580
[details]
Patch r=me
Yusuke Suzuki
Comment 6
2019-05-10 13:49:43 PDT
Committed
r245194
: <
https://trac.webkit.org/changeset/245194
>
Yusuke Suzuki
Comment 7
2019-05-13 16:43:35 PDT
Ah, my investigation was wrong. While memory reduction is real, the effect comes from the fact that JSRopeString is cheaper than JSString + StringImpl. Not related StringImpl's substring sharing feature. So, maybe, we should just prefer JSRopeString for substring cases.
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