RESOLVED FIXED 136786
Un-inline Element constructor
https://bugs.webkit.org/show_bug.cgi?id=136786
Summary Un-inline Element constructor
Chris Dumez
Reported 2014-09-12 11:20:06 PDT
Un-inline Element constructor as it is non-trivial and it does not seem to impact performance based on my testing. This reduces the stripped binary size by 8 Kb.
Attachments
Patch (2.28 KB, patch)
2014-09-12 11:23 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-09-12 11:23:37 PDT
Benjamin Poulain
Comment 2 2014-09-12 11:28:17 PDT
Comment on attachment 238038 [details] Patch My rule of thumb is to put the create() function out of line, and the constructor inline. Before landing, you should check if the 8k of binary size are not caused by a subclass that use an inline create().
Darin Adler
Comment 3 2014-09-12 17:58:21 PDT
(In reply to comment #2) > My rule of thumb is to put the create() function out of line, and the constructor inline. I also like to do that. But I think the inlining that is happening here is more likely when the constructor is called from derived class constructors.
WebKit Commit Bot
Comment 4 2014-09-13 16:21:35 PDT
Comment on attachment 238038 [details] Patch Clearing flags on attachment: 238038 Committed r173605: <http://trac.webkit.org/changeset/173605>
WebKit Commit Bot
Comment 5 2014-09-13 16:21:40 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.