#67 collections: parallel spliterators

Closed
opened 4 years ago by ranides · 1 comments
ranides commented 4 years ago

At this moment, our collections do not support parallel spliterators.

Especially VirtualList and IntRange should return specialized spliterators.

At this moment, our collections do not support parallel spliterators. Especially `VirtualList` and `IntRange` should return specialized spliterators.
ranides referenced this issue from a commit 4 years ago
ranides referenced this issue from a commit 4 years ago
ranides commented 4 years ago
Owner

In fact, default spliterator created from Iterator tries to split data anyway (using buffering and assuming, that producing values is faster than processing, which is reasonable assumption).

We put our implementation inside VirtualList and IntRange, but it is unnecessary to put it everywhere, especially because our data structures are not designed for parallelization in first place, I suppose.

They are fast, sequential, memory bounded, designed for realtime constraints, not for parallel processing which introduces a lot of overhead anyway.

In fact, default spliterator created from Iterator tries to split data anyway (using buffering and assuming, that producing values is faster than processing, which is reasonable assumption). We put our implementation inside VirtualList and IntRange, but it is unnecessary to put it everywhere, especially because our data structures are not designed for parallelization in first place, I suppose. They are fast, sequential, memory bounded, designed for realtime constraints, not for parallel processing which introduces a lot of overhead anyway.
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.