fix: remove redundant take() calls on iterators#1033
fix: remove redundant take() calls on iterators#1033DeVikingMark wants to merge 5 commits intoarkworks-rs:masterfrom
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.