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 62714
Web Inspector: breakpointsWithoutSourceFile values should be a maps, not arrays.
https://bugs.webkit.org/show_bug.cgi?id=62714
Summary
Web Inspector: breakpointsWithoutSourceFile values should be a maps, not arrays.
Pavel Podivilov
Reported
2011-06-15 03:46:42 PDT
Web Inspector: breakpointsWithoutSourceFile values should be a maps, not arrays. First, that way it is guaranteed that there is no duplicates. Second, breakpoints without source files will have the same structure as sourceFiles -> sourceFile.breakpoints, so we will be able to merge them together to reduce the complexity.
Attachments
Patch.
(5.91 KB, patch)
2011-06-15 03:47 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Added a threshold to nuke breakpoints.
(6.14 KB, patch)
2011-06-16 04:07 PDT
,
Pavel Podivilov
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-06-15 03:47:33 PDT
Created
attachment 97272
[details]
Patch.
Yury Semikhatsky
Comment 2
2011-06-15 03:52:18 PDT
Comment on
attachment 97272
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=97272&action=review
> Source/WebCore/inspector/front-end/Settings.js:-82 > - this._migrateSettings();
This code should be preserved to get rid of existing duplicates. Otherwise, inspector will be slow until next time breakpoints are persisted and override existing settings. r- for this.
Pavel Podivilov
Comment 3
2011-06-15 07:36:31 PDT
(In reply to
comment #2
)
> (From update of
attachment 97272
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=97272&action=review
> > > Source/WebCore/inspector/front-end/Settings.js:-82 > > - this._migrateSettings(); > > This code should be preserved to get rid of existing duplicates. Otherwise, inspector will be slow until next time breakpoints are persisted and override existing settings. r- for this.
If breakpoints are duplicated in local storage, chances are that inspector is slow for quite some time. Why can not it be slow just a little bit longer? From the other side, migrating the settings causes the loss of all breakpoints, even if there were no duplicates.
Pavel Feldman
Comment 4
2011-06-15 07:38:00 PDT
We could introduce a threshold and nuke breakpoints only in case the value length is > 2000000 + migrate to the map.
Pavel Podivilov
Comment 5
2011-06-16 04:07:09 PDT
Created
attachment 97433
[details]
Added a threshold to nuke breakpoints.
Pavel Podivilov
Comment 6
2011-06-17 05:41:01 PDT
Committed
r89135
: <
http://trac.webkit.org/changeset/89135
>
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