Jesse Wright
Jesse Wright
> ArrayIterator can be made incredibly faster Indeed - but its also probably worth tracking https://bugs.chromium.org/p/v8/issues/detail?id=12730 in case the V8 team solves this upstream for us. You would also want...
> @jeswr do you have time to do some testing of that branch on your use cases? I've not done any benchmarking for `wrap` - I imagine a degenerate case...
As discussed with @jacoscaz the proposed timeline for resolving this issue is (1) Get full coverage on current state of #57 . Perhaps minus the `SyncUnionIterator` for now, and then...
@jacoscaz 4 might be a significant amount of work to rebase and check for correctness; so I wouldn't bet on that by end of August. The other two *should* be...
I agree with the strategy - will try and wrap up work on the faster unions today
The use case for me is to terminate forwards chaining reasoning [here is *some* of the code for it, very WIP](https://github.com/comunica/comunica-feature-reasoning/blob/d89d93b92826058f16ae353ba305580c75aa2a71/packages/actor-rdf-reason-forward-chaining/lib/ActorRdfReasonForwardChaining.ts#L46-L70). Below is a minimal naive example to give you...
> `await maybeIterator(iterator)` Ah yes, good catch, and indeed do-while is a better choice a lot of the time. > hasItems The current `hasItems` implementation will result in one element...
> No, because it's after the filter has been applied? So it's just a second listener? But won't it still pull the first element out of the list before `iterator...
@RubenVerborgh this is ready for review - apparently I don't have permissions to set you as a reviewer over here ...
Just ran some tests that seem to support what @jacoscaz is saying here Experiment ```ts import { ArrayIterator, range, AsyncIterator } from 'asynciterator' for (let i = 0; i <...