WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
115952
Improve stringProtoFuncLastIndexOf for the prefix case
https://bugs.webkit.org/show_bug.cgi?id=115952
Summary
Improve stringProtoFuncLastIndexOf for the prefix case
Benjamin Poulain
Reported
2013-05-10 22:42:15 PDT
Improve stringProtoFuncLastIndexOf for the prefix case
Attachments
Patch
(5.60 KB, patch)
2013-05-10 22:47 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Patch
(7.40 KB, patch)
2013-05-11 00:56 PDT
,
Benjamin Poulain
ggaren
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-05-10 22:47:31 PDT
Created
attachment 201448
[details]
Patch
WebKit Commit Bot
Comment 2
2013-05-10 22:50:16 PDT
Attachment 201448
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/runtime/StringPrototype.cpp', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/text/StringImpl.cpp', u'Source/WTF/wtf/text/StringImpl.h', u'Source/WTF/wtf/text/WTFString.h']" exit_code: 1 Source/WTF/wtf/text/StringImpl.h:704: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3
2013-05-10 23:27:51 PDT
Comment on
attachment 201448
[details]
Patch
Attachment 201448
[details]
did not pass win-ews (win): Output:
http://webkit-queues.appspot.com/results/297111
Benjamin Poulain
Comment 4
2013-05-11 00:56:08 PDT
Created
attachment 201452
[details]
Patch
WebKit Commit Bot
Comment 5
2013-05-11 00:57:36 PDT
Attachment 201452
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreExports.def', u'Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in', u'Source/JavaScriptCore/runtime/StringPrototype.cpp', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/text/StringImpl.cpp', u'Source/WTF/wtf/text/StringImpl.h', u'Source/WTF/wtf/text/WTFString.h']" exit_code: 1 Source/WTF/wtf/text/StringImpl.h:704: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 6
2013-05-11 10:23:09 PDT
Comment on
attachment 201452
[details]
Patch r=me
Joseph Pecoraro
Comment 7
2013-05-11 13:38:47 PDT
Comment on
attachment 201452
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=201452&action=review
Nice!
> Source/JavaScriptCore/ChangeLog:12 > + On Joseph Pecoraro's tests, this gives a ~30% speed improvment.
Typo: "improvment" => "improvement"
Benjamin Poulain
Comment 8
2013-05-13 16:10:42 PDT
Committed
r150042
: <
http://trac.webkit.org/changeset/150042
>
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