WebGadget() is slow when websocket is involved

Linux specific forum
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

WebGadget() is slow when websocket is involved

Post by infratec »

Hi,

we use libwebkit2gtk-4.0-37 (2.38.5-1~deb11u1) and a large javascript react page where we communicate via websocket.
Compared to the execution speed in firefox it is very slow (switching between 2 pages with websocket stuff)
To check if it is the webkit we installed Epiphany which is in the official apt repository (epiphany-browser) and it uses also
libwebkit2gtk 2.38.5 as engine. (But static linked)

The speed is nearly as fast as in firefox.

From where comes the speed difference?
libwebkit is exactly the same.

Epiphany uses normal priority also the WebKit process uses normal priority.
Like our PB program.