AboutLibraries icon indicating copy to clipboard operation
AboutLibraries copied to clipboard

Feature Request - make Library data class stable

Open Nailik opened this issue 1 year ago • 14 comments

Stable is used in compose to improve recomposition because objects that didn't change don't need to call a recomposition of the composable where they are shown.

This could either achieved by marking generated Library stable with:

@Stable
Library

or by really making it stable:

  • use ImmutableList instead of List
  • use ImmutableSet instead of Set

I prefer making both, really making it stable and also add @stable to make it sure. Same for Organization and Developer

Note: kotlinx.collections.immutable does not yet support linuxArm64 https://github.com/Kotlin/kotlinx.collections.immutable/issues/79

Nailik avatar Apr 19 '23 14:04 Nailik