| Summary: | [WK2] Make Connection::sendMessage a little less heavy | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||
| Component: | New Bugs | Assignee: | Benjamin Poulain <benjamin> | ||||
| Status: | RESOLVED WONTFIX | ||||||
| Severity: | Normal | CC: | andersca, darin | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Benjamin Poulain
2014-03-20 21:06:22 PDT
Created attachment 227376 [details]
Patch
Comment on attachment 227376 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227376&action=review > Source/WebKit2/ChangeLog:8 > + Dispatching messages on the main thread takes a long time. This reduces the overhead a bit. This is not true though, we're not dispatching messages on the main thread. (In reply to comment #2) > > Source/WebKit2/ChangeLog:8 > > + Dispatching messages on the main thread takes a long time. This reduces the overhead a bit. > > This is not true though, we're not dispatching messages on the main thread. You are thinking dispatching messages to the other process... What takes lots of time here on the main thread is dispatching the messages to the dispatch queue for the secondary thread. (In reply to comment #3) > (In reply to comment #2) > > > Source/WebKit2/ChangeLog:8 > > > + Dispatching messages on the main thread takes a long time. This reduces the overhead a bit. > > > > This is not true though, we're not dispatching messages on the main thread. > > You are thinking dispatching messages to the other process... What takes lots of time here on the main thread is dispatching the messages to the dispatch queue for the secondary thread. Then the ChangeLog should make that clear. I don't think this patch is right either, but I'd have to look closer at the code. (In reply to comment #4) > > > This is not true though, we're not dispatching messages on the main thread. > > > > You are thinking dispatching messages to the other process... What takes lots of time here on the main thread is dispatching the messages to the dispatch queue for the secondary thread. > > Then the ChangeLog should make that clear. The ChangeLog never said anything about dispatching messages between processes :) > I don't think this patch is right either, but I'd have to look closer at the code. Can you please check? Anders, could do either review+ or review- on this? It’s been sitting around for a few months now. Comment on attachment 227376 [details]
Patch
Marking patch r- due to its age. Ben, can you update for current sources and we can sit and stare at Anders until he reviews the patch? ;-)
I think that using Lock instead of Mutex makes this patch unnecessary actually. |