lizmat, 3 months ago @samebchase my atomicint $i; $path.IO.lines.race(batch => 10000).map({ ++⚛$i }); would be a better benchmark. This will at least parallelize the work (incrementing $i). But that still needs serial decoding. How fast would this be: my $h = open $path; Nil while $h.read; that would be the lower bound. You could .list.grep(10, :k) on each Blob, and use that to decode async (10 being "\n".ord). Is that a plan?
@samebchase
my atomicint $i; $path.IO.lines.race(batch => 10000).map({ ++⚛$i });
would be a better benchmark. This will at least parallelize the work (incrementing $i). But that still needs serial decoding.
How fast would this be:
my $h = open $path; Nil while $h.read;
that would be the lower bound.
You could .list.grep(10, :k) on each Blob, and use that to decode async (10 being "\n".ord).
Is that a plan?