Spliterator flags as enum (was Initial java.util.Spliterator putback) (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Fri Mar 29 14:45:16 UTC 2013
- Previous message: Spliterator flags as enum (was Initial java.util.Spliterator putback)
- Next message: Spliterator flags as enum (was Initial java.util.Spliterator putback)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 29, 2013, at 5:39 AM, Paul Benedict <pbenedict at apache.org> wrote:
I think the use of EnumSet in a public API is superior to bit flags. Worrying about the number of bytes here is not important since they will all end up being garbage collected when the stream processing ends.
I worry.
We need to reduce the fixed costs of setting up the pipeline so using streams are not unduly expensive compared to a for loop using an equivalent lambda. Fixed costs are especially noticeable for small data sizes e.g. < 10.
We are currently working on refactoring the internals to further reduce fixed costs.
Paul.
- Previous message: Spliterator flags as enum (was Initial java.util.Spliterator putback)
- Next message: Spliterator flags as enum (was Initial java.util.Spliterator putback)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]