WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
130557
[WK2] Make Connection::sendMessage a little less heavy
https://bugs.webkit.org/show_bug.cgi?id=130557
Summary
[WK2] Make Connection::sendMessage a little less heavy
Benjamin Poulain
Reported
2014-03-20 21:06:22 PDT
[WK2] Make Connection::sendMessage a little less heavy
Attachments
Patch
(3.87 KB, patch)
2014-03-20 21:11 PDT
,
Benjamin Poulain
bfulgham
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2014-03-20 21:11:45 PDT
Created
attachment 227376
[details]
Patch
Anders Carlsson
Comment 2
2014-03-21 07:13:14 PDT
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.
Benjamin Poulain
Comment 3
2014-03-21 09:41:51 PDT
(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.
Anders Carlsson
Comment 4
2014-03-21 10:12:24 PDT
(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.
Benjamin Poulain
Comment 5
2014-03-21 17:20:01 PDT
(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?
Darin Adler
Comment 6
2014-07-12 16:50:52 PDT
Anders, could do either review+ or review- on this? It’s been sitting around for a few months now.
Brent Fulgham
Comment 7
2016-03-14 11:14:44 PDT
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? ;-)
Anders Carlsson
Comment 8
2016-03-14 11:48:13 PDT
I think that using Lock instead of Mutex makes this patch unnecessary actually.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug