[Webkit-unassigned] [Bug 97237] New: [WebSocket] Receiving a large message is really slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 20 10:52:10 PDT 2012


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

           Summary: [WebSocket] Receiving a large message is really slow
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: evan.exe at gmail.com


It takes around 6 seconds for WebKit to receive single a 5 MB message over a WebSocket on localhost. It takes Firefox around 0.125 seconds in comparison. The test code is available at https://gist.github.com/3753757/.

I looked into it and from what I can tell, WebSocketChannel is receiving data from the socket in 1 KB increments and reallocating its entire buffer every time to store each new increment.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list