Devhelp - webkit2gtk mini version?

Hi,

I use 'devhelp' extensively. But it is extremely annoying that each Tab takes 100MB to render a page of few KBytes. Some big libraries have a mini version. Is it possible to have a mini 'webkit2gtk' library, so 'devhelp' can use it for HTML rendering.

Any other solution to reduce memory footprint while using 'devhelp' is welcome too.

Thanks!

3 Likes

WebKitGTK can be configured (in Devhelp’s code) to disable/enable some features. JavaScript support was initially disabled, but needed to be enabled for HotDoc.

By disabling lots of WebKitGTK features, it’s probably possible to reduce the memory usage of Devhelp. But enough features still need to be enabled by default in order for Devhelp to work out-of-the-box with as many documentation systems as possible (not just gtk-doc, although that’s the main usage).

1 Like

@swilmet: thanks for the info. Will give it a try.

But, webkit library itself is 53M. So, WebKitWebProcess process starts with that.

$ du -sh /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.49.5 
53M	/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.49.5

Below is the process list for 4 tabs in devhelp

$ pstree -apu 20067
devhelp,20067, user
  β”œβ”€WebKitNetworkPr,20088 8 25
  β”‚   β”œβ”€{WebKitNetworkPr},20092
  β”‚   β”œβ”€{WebKitNetworkPr},20098
  β”‚   β”œβ”€{WebKitNetworkPr},20099
  β”‚   β”œβ”€{WebKitNetworkPr},20100
  β”‚   β”œβ”€{WebKitNetworkPr},20101
  β”‚   β”œβ”€{WebKitNetworkPr},20102
  β”‚   β”œβ”€{WebKitNetworkPr},20104
  β”‚   β”œβ”€{WebKitNetworkPr},20105
  β”‚   β”œβ”€{WebKitNetworkPr},20106
  β”‚   β”œβ”€{WebKitNetworkPr},20142
  β”‚   β”œβ”€{WebKitNetworkPr},20143
  β”‚   β”œβ”€{WebKitNetworkPr},20144
  β”‚   β”œβ”€{WebKitNetworkPr},23308
  β”‚   β”œβ”€{WebKitNetworkPr},23821
  β”‚   └─{WebKitNetworkPr},24452
  β”œβ”€bwrap,20087 --args 31 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 7 25
  β”‚   └─bwrap,20089 --args 31 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 7 25
  β”‚       └─WebKitWebProces,20091 7 25
  β”‚           β”œβ”€{WebKitWebProces},20093
  β”‚           β”œβ”€{WebKitWebProces},20095
  β”‚           β”œβ”€{WebKitWebProces},20137
  β”‚           β”œβ”€{WebKitWebProces},20138
  β”‚           β”œβ”€{WebKitWebProces},20139
  β”‚           β”œβ”€{WebKitWebProces},20140
  β”‚           β”œβ”€{WebKitWebProces},20141
  β”‚           β”œβ”€{WebKitWebProces},20145
  β”‚           β”œβ”€{WebKitWebProces},20146
  β”‚           β”œβ”€{WebKitWebProces},20147
  β”‚           β”œβ”€{WebKitWebProces},20148
  β”‚           β”œβ”€{WebKitWebProces},20149
  β”‚           β”œβ”€{WebKitWebProces},20150
  β”‚           β”œβ”€{WebKitWebProces},20151
  β”‚           β”œβ”€{WebKitWebProces},20152
  β”‚           β”œβ”€{WebKitWebProces},20153
  β”‚           └─{WebKitWebProces},20163
  β”œβ”€bwrap,23289 --args 48 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 16 44
  β”‚   └─bwrap,23290 --args 48 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 16 44
  β”‚       └─WebKitWebProces,23293 16 44
  β”‚           β”œβ”€{WebKitWebProces},23295
  β”‚           β”œβ”€{WebKitWebProces},23297
  β”‚           β”œβ”€{WebKitWebProces},23300
  β”‚           β”œβ”€{WebKitWebProces},23301
  β”‚           β”œβ”€{WebKitWebProces},23302
  β”‚           β”œβ”€{WebKitWebProces},23303
  β”‚           β”œβ”€{WebKitWebProces},23304
  β”‚           β”œβ”€{WebKitWebProces},23309
  β”‚           β”œβ”€{WebKitWebProces},23310
  β”‚           β”œβ”€{WebKitWebProces},23311
  β”‚           β”œβ”€{WebKitWebProces},23312
  β”‚           β”œβ”€{WebKitWebProces},23313
  β”‚           β”œβ”€{WebKitWebProces},23314
  β”‚           β”œβ”€{WebKitWebProces},23315
  β”‚           β”œβ”€{WebKitWebProces},23316
  β”‚           β”œβ”€{WebKitWebProces},23317
  β”‚           └─{WebKitWebProces},23328
  β”œβ”€bwrap,23806 --args 56 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 23 52
  β”‚   └─bwrap,23808 --args 56 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 23 52
  β”‚       └─WebKitWebProces,23810 23 52
  β”‚           β”œβ”€{WebKitWebProces},23811
  β”‚           β”œβ”€{WebKitWebProces},23813
  β”‚           β”œβ”€{WebKitWebProces},23816
  β”‚           β”œβ”€{WebKitWebProces},23817
  β”‚           β”œβ”€{WebKitWebProces},23818
  β”‚           β”œβ”€{WebKitWebProces},23819
  β”‚           β”œβ”€{WebKitWebProces},23820
  β”‚           β”œβ”€{WebKitWebProces},23822
  β”‚           β”œβ”€{WebKitWebProces},23823
  β”‚           β”œβ”€{WebKitWebProces},23824
  β”‚           β”œβ”€{WebKitWebProces},23825
  β”‚           β”œβ”€{WebKitWebProces},23826
  β”‚           β”œβ”€{WebKitWebProces},23827
  β”‚           β”œβ”€{WebKitWebProces},23828
  β”‚           β”œβ”€{WebKitWebProces},23829
  β”‚           β”œβ”€{WebKitWebProces},23830
  β”‚           └─{WebKitWebProces},23848
  β”œβ”€bwrap,24437 --args 64 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 30 60
  β”‚   └─bwrap,24439 --args 64 -- /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 30 60
  β”‚       └─WebKitWebProces,24441 30 60
  β”‚           β”œβ”€{WebKitWebProces},24442
  β”‚           β”œβ”€{WebKitWebProces},24444
  β”‚           β”œβ”€{WebKitWebProces},24447
  β”‚           β”œβ”€{WebKitWebProces},24448
  β”‚           β”œβ”€{WebKitWebProces},24449
  β”‚           β”œβ”€{WebKitWebProces},24450
  β”‚           β”œβ”€{WebKitWebProces},24451
  β”‚           β”œβ”€{WebKitWebProces},24453
  β”‚           β”œβ”€{WebKitWebProces},24454
  β”‚           β”œβ”€{WebKitWebProces},24455
  β”‚           β”œβ”€{WebKitWebProces},24456
  β”‚           β”œβ”€{WebKitWebProces},24457
  β”‚           β”œβ”€{WebKitWebProces},24458
  β”‚           β”œβ”€{WebKitWebProces},24459
  β”‚           β”œβ”€{WebKitWebProces},24460
  β”‚           β”œβ”€{WebKitWebProces},24461
  β”‚           └─{WebKitWebProces},24474
  β”œβ”€xdg-dbus-proxy,20083 --args=30
  β”‚   └─{xdg-dbus-proxy},20084
  β”œβ”€xdg-dbus-proxy,20085 --args=31
  β”‚   └─{xdg-dbus-proxy},20086
  β”œβ”€{devhelp},20069
  β”œβ”€{devhelp},20070
  β”œβ”€{devhelp},20072
  β”œβ”€{devhelp},20073
  β”œβ”€{devhelp},20074
  β”œβ”€{devhelp},20075
  β”œβ”€{devhelp},20076
  β”œβ”€{devhelp},20077
  β”œβ”€{devhelp},20078
  β”œβ”€{devhelp},20079
  β”œβ”€{devhelp},20080
  β”œβ”€{devhelp},20096
  β”œβ”€{devhelp},20097
  β”œβ”€{devhelp},23291
  β”œβ”€{devhelp},23807
  └─{devhelp},24438
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.