Bug 25266 - Minimize the use of C++ types in Objective-C methods
Summary: Minimize the use of C++ types in Objective-C methods
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on: 25210
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-17 07:44 PDT by Darin Adler
Modified: 2018-06-04 22:30 PDT (History)
4 users (show)

See Also:


Attachments
list of methods inside WebCore tree that might need to change (6.31 KB, text/plain)
2009-04-17 07:45 PDT, Darin Adler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2009-04-17 07:44:51 PDT
The Objective-C runtime doesn’t work so well with complex C++ types as arguments to methods. The methods end up building big complicated strings for use at runtime. While we never use these in WebKit, I believe the symbols themselves make the binary bigger and load slower (due to overhead making the strings unique).

Accordingly, we should minimize the use of C++ types for arguments to Objective-C methods.
Comment 1 Darin Adler 2009-04-17 07:45:43 PDT
Created attachment 29577 [details]
list of methods inside WebCore tree that might need to change
Comment 2 Darin Adler 2009-04-17 09:22:24 PDT
Bug 25210 is the part of this that in auto-generated DOM bindings.
Comment 3 Darin Adler 2018-06-04 22:30:56 PDT
Maybe we will do this one day, but I don’t think I need to keep this bug open just to remind me of the idea.