I've updated my project to Compose 1.3.0 and observed a significant performance loss while scrolling...
j
I've updated my project to Compose 1.3.0 and observed a significant performance loss while scrolling when dealing with huge texts (250.000-500.000 characters) in a `TextField`/`Text` . Anyone else experienced this? I also created a issue: https://issuetracker.google.com/issues/257281843
s
- 500.000 character long Text composables aren’t real, they can’t hurt you - 500.000 character long Text composables:
c
You have 500,000 characters in a TextField?
Does your app edit documents?
(Idly I wonder if there is a better control for document editing)
z
Yea that’s longer than we really support at this point. That said, “document editing” is a use case that we’re considering for an upcoming redesign of text field implementation.
j
@Zach Klippenstein (he/him) [MOD] it’s been a few months since I bugged you about this and I’ve been doing my best to avoid asking again, so seeing this reply has made me happy 😄
@jannis myself and others have filed issues regarding this, and I believe this is the main one tracking it, so feel free to +1 it: https://issuetracker.google.com/issues/181332856
s
I thought it gets bad long before 500k characters.
j
it does 😅
j
Yeah the performance decreased before 500.000. It's weird that it was totally fine in 1.2.1 I agree that's it's kind of an edge case but it could happen for me (translations).