[Webkit-unassigned] [Bug 186594] New: [WPE] Pack inspector resources in a .gresource file instead of a shared library

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 13 09:33:14 PDT 2018


            Bug ID: 186594
           Summary: [WPE] Pack inspector resources in a .gresource file
                    instead of a shared library
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit WPE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com
                CC: bugs-noreply at webkitgtk.org

For the WPE port the inspector resources are bundled using for loading with
GResource, built into an shared library which contains the bundled data,
and finally loaded on-demand using GModule (which ends up using “dlopen”)
when first needed.

There are no other contents in the shared library, so we could as
well generate a “*.gresource” data file instead (which is a GVDB
file), and load it using “g_resource_load” (instead of using GModule).
There are a few small advantages:

 - Disk space savings. GDVB files are slightly more compact than
   a shared library, and are mmap'd when loaded.

 - Loading the data does not involve the dynamic linker (no need for
   parsing an executable object, resolving symbols, etc.).

 - No intermediate build steps: the XML manifest gets built into the
   .gresource data file directly (compare with the current approach,
   which is: XML manifest → C source → object file → shared library).

While there's nothing particularly important in the list above, it
still would be nicer to use a data file instead of a shared library
for the inspector resources.

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/20180613/6a666215/attachment-0001.html>

More information about the webkit-unassigned mailing list