dave08
05/20/2024, 3:10 PMDaniel Pitts
05/20/2024, 3:16 PMDaniel Pitts
05/20/2024, 3:17 PMdave08
05/20/2024, 3:19 PMDaniel Pitts
05/20/2024, 3:20 PMDaniel Pitts
05/20/2024, 3:21 PMdave08
05/20/2024, 3:21 PMCasey Brooks
05/20/2024, 3:22 PMDaniel Pitts
05/20/2024, 3:23 PMdave08
05/20/2024, 3:25 PMbut significantly slower for performing any updates because of the heavy cost of copying data.You're saying that even for KotlinX Immutable @Casey Brooks?
ephemient
05/20/2024, 3:27 PMCasey Brooks
05/20/2024, 3:28 PMList, Map, etc. collections provide a strong enough contract for my needs. But from when Iāve looked into it before, I believe the Immutable library does use a copy-on-write approach to maintaining immutability, which is a relatively expensive operation.
Note that operators which wrap a structure in a āviewā are still limited by the performance of the underlying collection.ephemient
05/20/2024, 3:29 PMephemient
05/20/2024, 3:31 PMCasey Brooks
05/20/2024, 3:31 PMList (read-only) as a Java List (read-write).ephemient
05/20/2024, 3:33 PMList from a caller, you cannot know that it will have the same contents if iterated twice. not only mutableListOf() is List but also custom types existephemient
05/20/2024, 3:34 PMList as stable, but it does ImmutableListdave08
05/20/2024, 3:36 PMCasey Brooks
05/20/2024, 3:36 PMdave08
05/20/2024, 3:38 PMCasey Brooks
05/20/2024, 3:42 PMephemient
05/20/2024, 3:42 PMDaniel Pitts
05/20/2024, 3:43 PMdave08
05/20/2024, 3:45 PMephemient
05/20/2024, 3:45 PMDaniel Pitts
05/20/2024, 3:48 PMephemient
05/20/2024, 3:53 PM