Skip to content

Prefer the use of a NonEmptyVector#323

Merged
gpampara merged 17 commits intomasterfrom
non-empty-vector
Sep 17, 2021
Merged

Prefer the use of a NonEmptyVector#323
gpampara merged 17 commits intomasterfrom
non-empty-vector

Conversation

@gpampara
Copy link
Copy Markdown
Member

This PR translates the use of NonEmptyList for a more specialised NonEmptyVector that wraps the Chunk from zio.

The result is a large performance increase with lower memory usage because Chunks do not box primitives and are array-based. The zio.NonEmptyChunk is not used because it exposes some unsafe operations for the context of cilib and we therefore replicate the type internally without allowing the implicit conversion to Chunk from NonEmptyChunk.

@gpampara gpampara linked an issue Aug 28, 2021 that may be closed by this pull request
@gpampara gpampara marked this pull request as ready for review September 17, 2021 10:22
@gpampara gpampara merged commit acc084e into master Sep 17, 2021
@gpampara gpampara deleted the non-empty-vector branch September 17, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate the impact of specialised Position representations

1 participant