-
Notifications
You must be signed in to change notification settings - Fork 374
fix: remove redundant take() calls on iterators #1033
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
base: master
Are you sure you want to change the base?
Conversation
|
Can you provide some benchmarks which show that the code improves performance? |
@Pratyush I have run them but they running really long, here's a fragment, do you need all the logs from benches?
|
|
Thanks for the benchmarks. Unfortunately, they do not show the before/after. To get those benches, please run the following commands: git checkout master
cargo bench
git checkout <your-branch>
cargo benchPlease post the results of that. |
|
@Pratyush |
|
but i guess my bench file could be wrong therefore if it seems appropriate for you to close my pr, than in would be the best decision, i'll probable find another option to contribute |
|
Can you add your performance benchmark? Thanks! |
|
@Pratyush added benchmark and updated cargo |




Remove unnecessary take(size) and take(coset_size) calls where vectors are already created with exact required size.
Improves performance by eliminating redundant bounds checking.