Has compose gone through performance optimization ...
# compose
s
Has compose gone through performance optimization yet? I found someone who made a small compose benchmark vs standard Android views a while back. His results shows compose running more than 50% slower than Android Views. I updated his benchmark to the latest version of compose, and ran it. I haven’t seen any numbers, but compose is noticeably slower from a user perspective of loading the page. https://github.com/MustafaBasim/uiPerformanceTests
r
I don’t think it’s ever possible to have a framework like compose, react, swiftui run faster than a well-optimized, imperatively written UI. For the most part as long as you’re getting 60 FPS it doesn’t really matter but we do pay a cost for the brilliant abstraction layer that compose provides.
s
I think what I noticed most of all is that even loading the screen took significantly longer.
j
Does adapterlist lazy load? Also how do the results look like without loading vectordrawables on the main thread?
I did not notice compose to be particularly slow
Also not that it is particularly fast
d
Might have to do with android views being bundled with the OS and therefore being well JITed.