-
Notifications
You must be signed in to change notification settings - Fork 122
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
Font caching Issue for ios #712
Comments
Try to use: |
@ExNDY, it's the same with |
Ios != Android, |
not sure what exactly you mean by recomposition i tried copying the i don't think the problem is with the moko-resources library
|
i don't cleary understand you, you find problem with your logic on ui? or what's happined? Recomposition for me is base of compose:) If you use unstable types inside composition on every recomposition of screen (recreating/update screen content you create new values for unstable variable) because one of solution for best performance don't usage of list for remember, for example. |
i haven't solved the problem, most likely it's because of if you think i'm using unstable types, then why isn't there this problem on android? |
you read my first message? Android has optimisations under hood. How much experience you have in compose? I need understand what i can do for this issue |
yes, i saw the message. but your assumption that android has optimization under the hood doesn't seem convincing. simply removing fonts don't depend on the ui state. is it possible to make |
Hm, man, you "rewrite" on non compose style. You don't hear important argument: jetpack compose is not compose Multiplatform on other platforms, that framework very sensitive for data types. Usage of lazy inside Composable talking about you don't know principles of Compose. Sorry, i'm question you about your experience in Compose for that. You ignore me with this question. Question about persistentMapOf on ios was ignored too. If somebody wants chat with you that's cool. |
In my project, fonts consume a significant amount of memory when launched on ios devices. There are no issues on android.
According to the FontResource code, fonts should be cached.
In my project, I specify a list of all fonts (18 in total) in a map:
Without fonts, the app usually takes up 150-200 MB of memory. With fonts, it takes 1.5-2 GB.
Here is a screenshot from the profiler showing 3000 entries for fonts:
The text was updated successfully, but these errors were encountered: