Skip to content

Fix dropWhile performance - #146

Closed
charles-cooper wants to merge 2 commits into
haskell:masterfrom
charles-cooper:master
Closed

charles-cooper wants to merge 2 commits into
haskell:masterfrom
charles-cooper:master

Conversation

@charles-cooper

Copy link
Copy Markdown

The unstream version results in a copy of the remainder of the vector
which is rarely what you want to do. This commit uses drop directly
after findIndex which results in a big speed gain if the remaining
part of the vector is large.

Cf. #108
and #141

The `unstream` version results in a copy of the remainder of the vector
which is rarely what you want to do. This commit uses `drop` directly
after `findIndex` which results in a big speed gain if the remaining
part of the vector is large.

Cf. haskell#108
and haskell#141
@dolio dolio mentioned this pull request Jan 3, 2017
@Shimuuar

Copy link
Copy Markdown
Contributor

Superseded by #327

@Shimuuar Shimuuar closed this Aug 13, 2020
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.

2 participants