Merge lp:~vanvugt/mir/method-index into lp:~mir-team/mir/trunk
Status: | Rejected |
---|---|
Rejected by: | Daniel van Vugt |
Proposed branch: | lp:~vanvugt/mir/method-index |
Merge into: | lp:~mir-team/mir/trunk |
Diff against target: |
144 lines (+51/-41) 3 files modified
src/client/mir_basic_rpc_channel.cpp (+1/-1) src/server/frontend/protobuf_message_processor.cpp (+49/-39) src/shared/protobuf/mir_protobuf_wire.proto (+1/-1) |
To merge this branch: | bzr merge lp:~vanvugt/mir/method-index |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Disapprove | ||
Alan Griffiths | Abstain | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+159782@code.launchpad.net |
Commit message
Avoid passing method names as strings over the protocol. You can save time,
memory and bandwidth by using the method index (integer) instead.
Description of the change
Sad to say this only makes a very tiny performance improvement. But it was worth a try. dispatch() dropped from 15% (of Mir) to 14%. Such a small improvement is only measurable with a profiler.
So take it or leave it...
Unmerged revisions
- 609. By Daniel van Vugt
-
Avoid passing method names as strings in every single invocation. You can
use their unique integer indices instead. - 608. By Robert Carr
-
Input configuration must be held by shared_ptr. Fixes: https:/
/bugs.launchpad .net/bugs/ 1170524. Approved by PS Jenkins bot, Kevin DuBois.
- 607. By Alan Griffiths
-
config: documentation of the DefaultServerCo
nfiguration member functions. Approved by Alexandros Frantzis, PS Jenkins bot.
- 606. By Robert Ancell
-
Use mir::shell:Session instead of mir::frontend:
:Session in mir::shell: :SessionContain er and mir::shell: :FocusSequence - this stops a user of these classes having to cast to mir::shell::Session objects. Approved by PS Jenkins bot.
- 605. By Robert Ancell
-
Remove unused include
- 604. By Robert Ancell
-
Make mir::shell:
:SessionContain er an abstract class with a default implementation in DefaultSessionM anager. Approved by PS Jenkins bot, Kevin DuBois.
- 603. By Daniel van Vugt
-
Remember to generate debug info (LP: #1170202). Fixes: https:/
/bugs.launchpad .net/bugs/ 1170202. Approved by Alexandros Frantzis, Alan Griffiths, PS Jenkins bot.
- 602. By Alexandros Frantzis
-
Rename Shell::shutdown() and friends to ::force_
requests_ to_complete( ) and improve shutdown testing. Approved by PS Jenkins bot, Kevin DuBois, Alan Griffiths.
- 601. By Daniel van Vugt
-
Make client API function names more consistent so that they follow the
convention: namespace_class_method( Class *x, ...). Approved by Kevin DuBois, Alexandros Frantzis, PS Jenkins bot.
- 600. By Daniel van Vugt
-
Don't waste time clearing a depth buffer we will never use. It just slows us
down.Certainly many clients will use depth buffers, but the compositor should
never need one.Approved by Kevin DuBois, Alan Griffiths, PS Jenkins bot.
The performance improvement might be more significant under flooding conditions, such as when vsync is disabled (bug 1130553).