#67 collections: parallel spliterators

Suljettu
4 vuotta sitten avasi ranides · 1 kommenttia
ranides kommentoitu 4 vuotta sitten

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 viittasi tähän ongelmaan commitissa 4 vuotta sitten
ranides viittasi tähän ongelmaan commitissa 4 vuotta sitten
ranides kommentoitu 4 vuotta sitten
Omistaja

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.
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.