WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176324
Use StringView in DOMFileSystem::evaluatePath()
https://bugs.webkit.org/show_bug.cgi?id=176324
Summary
Use StringView in DOMFileSystem::evaluatePath()
Chris Dumez
Reported
2017-09-03 21:23:56 PDT
Use StringView in DOMFileSystem::evaluatePath() for performance.
Attachments
Patch
(3.15 KB, patch)
2017-09-03 21:24 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-09-03 21:24:57 PDT
Created
attachment 319833
[details]
Patch
Darin Adler
Comment 2
2017-09-03 21:45:31 PDT
Comment on
attachment 319833
[details]
Patch Seems like a good first step. But I think that virtualPathSegments and relativePathSegments can also be StringView, for example. And we can write a pathByAppendingComponents that takes StringView too.
Chris Dumez
Comment 3
2017-09-03 22:10:28 PDT
(In reply to Darin Adler from
comment #2
)
> Comment on
attachment 319833
[details]
> Patch > > Seems like a good first step. But I think that virtualPathSegments and > relativePathSegments can also be StringView, for example. And we can write a > pathByAppendingComponents that takes StringView too.
This issue for virtualPathSegments is that StringView::split() does not return a Vector <StringView> but rather a StringView::SplitResult which I cannot modify (The current code relies on modifying the Vector.
Darin Adler
Comment 4
2017-09-03 22:14:49 PDT
(In reply to Chris Dumez from
comment #3
)
> This issue for virtualPathSegments is that StringView::split() does not > return a Vector <StringView> but rather a StringView::SplitResult
Here is how you turn a SplitResult into a vector: Vector<StringView> vector; for (auto substringView : overallStringView.split('/')) vector.append(substringView);
WebKit Commit Bot
Comment 5
2017-09-03 23:07:12 PDT
Comment on
attachment 319833
[details]
Patch Clearing flags on attachment: 319833 Committed
r221573
: <
http://trac.webkit.org/changeset/221573
>
WebKit Commit Bot
Comment 6
2017-09-03 23:07:14 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2017-09-27 12:38:09 PDT
<
rdar://problem/34693652
>
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