Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a IterationBuffer.new(iterable) candidate #4599

Merged
merged 1 commit into from Nov 17, 2021

Conversation

lizmat
Copy link
Contributor

@lizmat lizmat commented Oct 28, 2021

To facilitate initializing iteration buffers. Makes

IterationBuffer.new(<a b c d e f g h i j>);

about 2x as fast as:

my $b := IterationBuffer.new;
$b.push($_) for <a b c d e f g h i j>;
$b

To facilitate initializing iteration buffers.  Makes

    IterationBuffer.new(<a b c d e f g h i j>);

about 2x as fast as:

    my $b := IterationBuffer.new;
    $b.push($_) for <a b c d e f g h i j>;
    $b
@lizmat lizmat merged commit ad145b4 into master Nov 17, 2021
@lizmat lizmat deleted the IterationBuffer.new(iterable) branch November 17, 2021 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant