[Webkit-unassigned] [Bug 241639] New: [WebIDL] Optimize / rework maplike<> and setlike<> declarations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 15 11:33:17 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241639

            Bug ID: 241639
           Summary: [WebIDL] Optimize / rework maplike<> and setlike<>
                    declarations
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashvayka at apple.com
                CC: cdumez at apple.com

As Yusuke suggested in https://github.com/WebKit/WebKit/pull/1523#pullrequestreview-1006702442, Map / Set methods can be moved to JSGlobalObject's fields.
Also, we can go further and drop JSC::call and invoke C++ functions like mapProtoFuncValues directly, or even manipulate JSMap directly.

Sam suggested in https://github.com/WebKit/WebKit/pull/1523#issuecomment-1156653410 that we might not need backing Map / Set at all, as it merely duplicates data in most cases given DOM C++ code usually already had a HashMap or HashSet backing things.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220615/22bb812a/attachment.htm>


More information about the webkit-unassigned mailing list