does it make sense to use remember for annotated s...
# compose
p
does it make sense to use remember for annotated string?
Copy code
val text = remember {
    buildAnnotatedString {
        // ...
    }
}
s
You can use remember on anything that you don’t want to be re-calculated on every recomposition. The difference might be minuscule though, and if you are using something inside the builder which is not set as a key to
remember
you can also get correctness problems. Not sure if the annotatedString is slow, if you really are worried maybe try and profile this somehow?