Changes for version v0.3.5 - 2026-11-16
- Pushing values through take, drop and the other stages made with gather costs 40 to 45% less a value, and a short push less than half what it did.
- It ships roadmap 2026-0041. Nothing changes but speed: the values, the messages, the order things run in, and what each part is told are as they were.
- A push, $pipeline->(@values), takes the plain loop whenever the stages made for its run have no flush or end, as take, drop, take_single, drop_while, count_into and most stages made with gather haven't; until now any stage made for a run sent it the longer way. A stage made with gather then costs a pushed value no more than a plain one: through take, about 400 ns a value, not 720, on Perl 5.36, and 440, not 775, on 5.44; and a push of one value through take(5) about 5 µs, not 14. Pulled runs, and runs with a flush, an end or a sink, such as batch, take_last and the sinks, are as they were. (roadmap 2026-0041)
Documentation
Ekorn::Pipeline user guide
Ekorn::Pipeline reference
Modules
run values through a list of stages
what Ekorn's types are made from
report Ekorn::Pipeline's errors at the caller's line
words that make Ekorn's types
a stage made afresh for each run, told when its values run out
one run, handing out its values as they're pulled
read and write JSON and JSON Lines, as sources, stages or sinks
|, |= and @{} for Ekorn's types
pipe and tap methods, running an object through stages
a sink made afresh for each run
ready-made sinks, needing only Perl
a source made afresh for each run
ready-made sources, needing only Perl
a stage, as an object
stages gathering values: batch and collect
stages taking or dropping values: take, drop, take_if, drop_if, take_while and drop_while
stages run for their side effects: peek, count_into and dump_to
end a pipeline early
name pipelines as the program compiles, each with a function
Ekorn's stages, sources, sinks and words, from one module
Provides
in lib/Ekorn/Pipeline/Operators.pm
in lib/Ekorn/Pipeline/Operators.pm
in lib/Ekorn/Pipeline/Sink.pm
in lib/Ekorn/Pipeline/Sink.pm