I am developing an app using Jetpack Compose.
The algorithmic parts of this application were acting slow and hence I started profiling the app.
The function which is consuming most of the time, according to the profiler, is isLiveLiteralsEnabled()
which is part of the Compose runtime. And this is getting called in the most innocuous places, such as integer additions within nested loops.
As I understand it, the compose compiler plugin is instrumenting the code for some reason.
What is this reason? And how do I disable / workaround it?
deaddroid
's answer one has to toggle a setting in AS.@NoLiveLiterals
annotation, though I have not tried this yet.