greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.68k stars 4.66k forks source link

Android Handler Async API #548

Open takahirom opened 6 years ago

takahirom commented 6 years ago

I think that performance can be improved by adding an API that can use Message#setAsynchronous() and Handler.createAsync(). https://medium.com/@sweers/rxandroids-new-async-api-4ab5b3ad3e93

takahirom commented 6 years ago

@greenrobot Is there any plan to apply it?

greenrobot-team commented 6 years ago

Thanks, I also saw this. Maybe this is worth looking into.

TLDR: There is a new Message#setAsynchronous() method in API 22 which allows to bypass the VSYNC lock (16ms) when posting it with Handler. -ut