Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow perfomance #21

Closed
NurseyitTursunkulov opened this issue Nov 9, 2019 · 12 comments
Closed

Very slow perfomance #21

NurseyitTursunkulov opened this issue Nov 9, 2019 · 12 comments

Comments

@NurseyitTursunkulov
Copy link

I installed JetNews app, it works very very slowly. The worst UX, I have to wait for 7-10 seconds before it navigates to another screen. Please check it.

@nickbutcher
Copy link
Contributor

Jetpack Compose is currently in Developer Preview and has not been optimised for performance. Closing this issue.

@iRYO400
Copy link

iRYO400 commented Nov 14, 2020

It's still same for today (11.14.2020)
Tested on Huawei P20 Lite

@anlexN
Copy link

anlexN commented Dec 9, 2020

just preview my background, it costs me 47s, oh my god. i am very very angry.

@NurseyitTursunkulov
Copy link
Author

Android team as always weak, compared with iOS

@muhammadalkady
Copy link

It's still same for today

@jgavazzisp
Copy link

It seems to happen only on the very first screen loaded.

@mahdisml
Copy link

mahdisml commented Aug 4, 2021

So true ! It happen only in first startup !

It seems to happen only on the very first screen loaded.

@nickbutcher please open this thread :)

@daniel-micic
Copy link

same thing happening in stable release. why is this not opened again ?

@the-brown-foxx
Copy link

My debug version is also slow, but the release build (with minify enabled) is super performant. Geez people. Why are you so angry. lol. Just say your problems in a civilized fashion.

@muhammadalkady
Copy link

muhammadalkady commented May 5, 2022

@hamthelegend Jetpack compose still runs in interpreted mode in release the first few times. So it is slow at first which is important for UX.

@the-brown-foxx
Copy link

AFAIK, the release build does not @muhammadalkady. Correct me if I'm wrong

@muhammadalkady
Copy link

muhammadalkady commented May 6, 2022

@hamthelegend even in release mode still runs in interpreted mode.
https://developer.android.com/jetpack/compose/performance#use-baseline

Compose is distributed as a library, instead of being part of the Android platform. This approach lets us update Compose frequently and support older Android versions. However, distributing Compose as a library imposes a cost. Android platform code is already compiled and installed on the device. Libraries, on the other hand, need to be loaded when the app launches, and interpreted just-in-time when the functionality is needed. This can slow the app on startup, and whenever it uses a library feature for the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants