Coder Social home page Coder Social logo

Very slow perfomance about compose-samples HOT 12 CLOSED

android avatar android commented on August 26, 2024 16
Very slow perfomance

from compose-samples.

Comments (12)

NurseyitTursunkulov avatar NurseyitTursunkulov commented on August 26, 2024 37

Android team as always weak, compared with iOS

from compose-samples.

daniel-micic avatar daniel-micic commented on August 26, 2024 24

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

from compose-samples.

iRYO400 avatar iRYO400 commented on August 26, 2024 15

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

from compose-samples.

muhammadalkady avatar muhammadalkady commented on August 26, 2024 4

It's still same for today

from compose-samples.

jgavazzisp avatar jgavazzisp commented on August 26, 2024 3

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

from compose-samples.

mahdisml avatar mahdisml commented on August 26, 2024 3

So true ! It happen only in first startup !

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

@nickbutcher please open this thread :)

from compose-samples.

nickbutcher avatar nickbutcher commented on August 26, 2024

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

from compose-samples.

anlexN avatar anlexN commented on August 26, 2024

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

from compose-samples.

hamthelegend avatar hamthelegend commented on August 26, 2024

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.

from compose-samples.

muhammadalkady avatar muhammadalkady commented on August 26, 2024

@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.

from compose-samples.

hamthelegend avatar hamthelegend commented on August 26, 2024

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

from compose-samples.

muhammadalkady avatar muhammadalkady commented on August 26, 2024

@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.

from compose-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.