WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
119158
Document::encoding creates new String on every call
https://bugs.webkit.org/show_bug.cgi?id=119158
Summary
Document::encoding creates new String on every call
Ryosuke Niwa
Reported
2013-07-26 13:42:59 PDT
Fix the problem
https://chromium.googlesource.com/chromium/blink/+/e2fa12521e335908361ae9db0c14a8cd0d6bef66
fixed. We should fix TextResourceDecoder and the related classes.
Attachments
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2013-07-30 16:05:21 PDT
Remove unecessary malloc seen in
http://sina.com.cn
(#17) Content calls down into Blink a bunch of times during loading to check the document's encoding. Every time we were allocating a new copy of a constant string. The right fix is to fix TextEncoding to have fancier static-string technology, but this is the quick-fix to get this malloc off the profile of
http://sina.com.cn
.
Ryosuke Niwa
Comment 2
2022-08-21 19:12:18 PDT
This function doesn't exist anymore.
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