Skip to content

Conversation

@kkanag314
Copy link

@kkanag314 kkanag314 commented Sep 23, 2024

[Fix] App freezes during Navigation If we inspect using RWI

…sends the message to RWI which results in the busy loop blocking webkit main thread.Because it takes a while to read and transmit the message.
@kkanag314
Copy link
Author

when app sends large message to their backend, network inspect agent sends the message to RWI which results in the busy loop blocking webkit main thread. Because it takes a while to read and transmit the message.

@magomez magomez merged commit 56277c7 into WebPlatformForEmbedded:wpe-2.38 Sep 26, 2024
@blino
Copy link

blino commented Dec 13, 2024

@magomez @kkanag314 : this really helps performance with RWI, thanks for the patch!
Will this be submitted upstream?

@pgorszkowski-igalia
Copy link

@blino , @kkanag314 : I will try to upstream this change.

@pgorszkowski-igalia
Copy link

@blino , @kkanag314 : upstream PR: WebKit/WebKit#39064

webkit-commit-queue pushed a commit to pgorszkowski-igalia/WebKit that referenced this pull request Jan 16, 2025
https://bugs.webkit.org/show_bug.cgi?id=285978

Reviewed by Adrian Perez de Castro.

In case of large message, we can speed its reading up by increase the reading buffer to
expected size of the message (which is read from the header of the message).

The solution was proposed in WebPlatformForEmbedded/WPEWebKit#1407.

Original author: Krishna Priya K (https://github.com/kkanag314).

* Source/WTF/wtf/glib/SocketConnection.cpp:
(WTF::SocketConnection::readMessage):

Canonical link: https://commits.webkit.org/289009@main
aperezdc pushed a commit to WebKit/WebKit that referenced this pull request Mar 13, 2025
…gi?id=285978

    [GTK][WPE] Remote Inspector: speed up of reading large message
    https://bugs.webkit.org/show_bug.cgi?id=285978

    Reviewed by Adrian Perez de Castro.

    In case of large message, we can speed its reading up by increase the reading buffer to
    expected size of the message (which is read from the header of the message).

    The solution was proposed in WebPlatformForEmbedded/WPEWebKit#1407.

    Original author: Krishna Priya K (https://github.com/kkanag314).

    * Source/WTF/wtf/glib/SocketConnection.cpp:
    (WTF::SocketConnection::readMessage):

    Canonical link: https://commits.webkit.org/289009@main

Canonical link: https://commits.webkit.org/282416.480@webkitglib/2.46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

5 participants