Kotlin / kotlinx.collections.immutable

Immutable persistent collections for Kotlin
Apache License 2.0
1.16k stars 59 forks source link

Optimize SmallPersistentVector.removeAll #133

Closed mcpiroman closed 1 year ago

mcpiroman commented 1 year ago

Don't copy new buffer when removing single element. Don't copy unecessary elements from old buffer to the new one.

I'm concerned that now the newBuffer can escape, so it may not be stack allocated.

mcpiroman commented 1 year ago

Closed in favor of #134