WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165003
Streamline and speed up tokenizer and segmented string classes
https://bugs.webkit.org/show_bug.cgi?id=165003
Summary
Streamline and speed up tokenizer and segmented string classes
Darin Adler
Reported
2016-11-20 21:21:42 PST
Streamline and speed up tokenizer and segmented string classes
Attachments
Patch
(185.56 KB, patch)
2016-11-21 00:35 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-yosemite
(292.67 KB, application/zip)
2016-11-21 01:25 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2
(441.37 KB, application/zip)
2016-11-21 01:27 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews115 for mac-yosemite
(346.16 KB, application/zip)
2016-11-21 01:32 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews121 for ios-simulator-wk2
(215.25 KB, application/zip)
2016-11-21 01:36 PST
,
Build Bot
no flags
Details
Patch
(196.99 KB, patch)
2016-11-21 01:59 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews117 for mac-yosemite
(1.28 MB, application/zip)
2016-11-21 03:12 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews103 for mac-yosemite
(1.47 MB, application/zip)
2016-11-21 03:15 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews106 for mac-yosemite-wk2
(1.02 MB, application/zip)
2016-11-21 03:17 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews122 for ios-simulator-wk2
(15.17 MB, application/zip)
2016-11-21 03:44 PST
,
Build Bot
no flags
Details
Patch
(196.69 KB, patch)
2016-11-21 09:34 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews114 for mac-yosemite
(1.65 MB, application/zip)
2016-11-21 10:53 PST
,
Build Bot
no flags
Details
Patch
(196.71 KB, patch)
2016-11-21 11:11 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(197.15 KB, patch)
2016-11-21 14:40 PST
,
Darin Adler
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(13)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2016-11-21 00:35:07 PST
Created
attachment 295282
[details]
Patch
Build Bot
Comment 2
2016-11-21 01:25:56 PST
Comment on
attachment 295282
[details]
Patch
Attachment 295282
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/2550774
Number of test failures exceeded the failure limit.
Build Bot
Comment 3
2016-11-21 01:25:59 PST
Created
attachment 295283
[details]
Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4
2016-11-21 01:27:34 PST
Comment on
attachment 295282
[details]
Patch
Attachment 295282
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/2550776
Number of test failures exceeded the failure limit.
Build Bot
Comment 5
2016-11-21 01:27:37 PST
Created
attachment 295284
[details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 6
2016-11-21 01:32:43 PST
Comment on
attachment 295282
[details]
Patch
Attachment 295282
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/2550781
Number of test failures exceeded the failure limit.
Build Bot
Comment 7
2016-11-21 01:32:46 PST
Created
attachment 295285
[details]
Archive of layout-test-results from ews115 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 8
2016-11-21 01:36:11 PST
Comment on
attachment 295282
[details]
Patch
Attachment 295282
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/2550779
Number of test failures exceeded the failure limit.
Build Bot
Comment 9
2016-11-21 01:36:14 PST
Created
attachment 295286
[details]
Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Darin Adler
Comment 10
2016-11-21 01:59:08 PST
Created
attachment 295287
[details]
Patch
Build Bot
Comment 11
2016-11-21 03:11:55 PST
Comment on
attachment 295287
[details]
Patch
Attachment 295287
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/2551069
Number of test failures exceeded the failure limit.
Build Bot
Comment 12
2016-11-21 03:12:00 PST
Created
attachment 295288
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 13
2016-11-21 03:15:07 PST
Comment on
attachment 295287
[details]
Patch
Attachment 295287
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/2551087
New failing tests: http/tests/security/contentSecurityPolicy/default-src-inline-blocked.html http/tests/security/contentSecurityPolicy/injected-inline-script-blocked.html fast/dom/nested-script-exceptions.html fast/dom/Document/document-write-recursion.html http/tests/security/contentSecurityPolicy/injected-inline-style-blocked.html http/tests/security/contentSecurityPolicy/inline-script-blocked.html
Build Bot
Comment 14
2016-11-21 03:15:11 PST
Created
attachment 295290
[details]
Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 15
2016-11-21 03:17:01 PST
Comment on
attachment 295287
[details]
Patch
Attachment 295287
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/2551086
New failing tests: http/tests/security/contentSecurityPolicy/default-src-inline-blocked.html http/tests/security/contentSecurityPolicy/injected-inline-script-blocked.html fast/dom/nested-script-exceptions.html fast/dom/Document/document-write-recursion.html http/tests/security/contentSecurityPolicy/injected-inline-style-blocked.html http/tests/security/contentSecurityPolicy/inline-script-blocked.html
Build Bot
Comment 16
2016-11-21 03:17:06 PST
Created
attachment 295291
[details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 17
2016-11-21 03:44:32 PST
Comment on
attachment 295287
[details]
Patch
Attachment 295287
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/2551105
New failing tests: http/tests/security/contentSecurityPolicy/default-src-inline-blocked.html http/tests/security/contentSecurityPolicy/injected-inline-script-blocked.html fast/dom/nested-script-exceptions.html fast/dom/Document/document-write-recursion.html http/tests/security/contentSecurityPolicy/injected-inline-style-blocked.html http/tests/security/contentSecurityPolicy/inline-script-blocked.html
Build Bot
Comment 18
2016-11-21 03:44:36 PST
Created
attachment 295292
[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Darin Adler
Comment 19
2016-11-21 09:34:38 PST
Created
attachment 295298
[details]
Patch
Build Bot
Comment 20
2016-11-21 10:53:43 PST
Comment on
attachment 295298
[details]
Patch
Attachment 295298
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/2552519
New failing tests: fast/forms/style-display-none.html
Build Bot
Comment 21
2016-11-21 10:53:47 PST
Created
attachment 295301
[details]
Archive of layout-test-results from ews114 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-yosemite Platform: Mac OS X 10.10.5
Darin Adler
Comment 22
2016-11-21 11:11:59 PST
Created
attachment 295304
[details]
Patch
Darin Adler
Comment 23
2016-11-21 11:12:50 PST
OK, I expect this time it will pass all tests. I’m measuring a 3% speedup in Speedometer on my iMac.
Darin Adler
Comment 24
2016-11-21 14:40:28 PST
Created
attachment 295313
[details]
Patch
Darin Adler
Comment 25
2016-11-22 09:17:11 PST
All tests passing. No rush to review this since I’ll be out of town for a few days, but I think it’s ready to go.
Darin Adler
Comment 26
2016-11-28 09:21:00 PST
I hope someone gets a chance to review this soon. I wonder what kind of speedup we will see on ARM.
Sam Weinig
Comment 27
2016-11-28 17:02:43 PST
Comment on
attachment 295313
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295313&action=review
> Source/WebCore/html/track/BufferedLineReader.cpp:95 > + String line = m_lineBuffer.toString();
auto?
Darin Adler
Comment 28
2016-11-28 20:30:17 PST
Committed
r209058
: <
http://trac.webkit.org/changeset/209058
>
Saam Barati
Comment 29
2016-11-29 11:45:28 PST
It looks like this is a 33% regression on the json-stringify-tinderbox Kraken test, leading to a 1-1.5% regression on the overall Kraken benchmark.
WebKit Commit Bot
Comment 30
2016-11-29 20:50:16 PST
Re-opened since this is blocked by
bug 165188
Ryan Haddad
Comment 31
2016-11-29 20:56:49 PST
***
Bug 165142
has been marked as a duplicate of this bug. ***
Ryan Haddad
Comment 32
2016-11-29 20:57:08 PST
***
Bug 165151
has been marked as a duplicate of this bug. ***
Ryan Haddad
Comment 33
2016-11-29 21:01:11 PST
(In reply to
comment #30
)
> Re-opened since this is blocked by
bug 165188
Rolled out this change in
https://trac.webkit.org/r209120
due to it breaking an API test. See these bugs for details:
https://bugs.webkit.org/show_bug.cgi?id=165142
https://bugs.webkit.org/show_bug.cgi?id=165151
Darin Adler
Comment 34
2016-11-30 08:59:35 PST
Committed
r209129
: <
http://trac.webkit.org/changeset/209129
>
Darin Adler
Comment 35
2016-11-30 09:02:07 PST
(In reply to
comment #29
)
> It looks like this is a 33% regression on the json-stringify-tinderbox > Kraken test, leading to a 1-1.5% regression on the overall Kraken benchmark.
Oh, I didn’t see this comment! I will roll out the JSON stringify part of this patch and tackle the slowness in that function another way. I’ll do that right now.
Chris Dumez
Comment 36
2016-11-30 09:34:02 PST
(In reply to
comment #28
)
> Committed
r209058
: <
http://trac.webkit.org/changeset/209058
>
Still running A/B testing but it looks like a ~1% progression on Speedometer.
Saam Barati
Comment 37
2016-12-02 12:42:12 PST
For posterity: stringify bits rolled out in:
https://trac.webkit.org/changeset/209173
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