bls-signatures icon indicating copy to clipboard operation
bls-signatures copied to clipboard

take span instead of std::vector to simplify interface

Open arvidn opened this issue 3 years ago • 10 comments

modernize the interface a bit to take span rather than std::vector. For now, use our own span type, but this could use GSL or std::span in the future. The main motivation for this is to allow passing ranges of values without having to first copy them into a std::vector. It also simplifies some of the functions that currently take both a span and a std::vector. By making span be implicitly constructed from a vector, we can remove one of the overloads.

arvidn avatar Mar 23 '21 15:03 arvidn

I marked this as a draft for now. I think I may pivot this into just doing the span change (more pervasively) and make another attempt at avoiding copying all the messages in a separate PR

arvidn avatar Mar 24 '21 17:03 arvidn

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Aug 12 '21 11:08 github-actions[bot]

Is this something that we still want to do? or should we close it? @xdustinface

mariano54 avatar Nov 10 '21 19:11 mariano54

I think there are a lot of opportunities to simplify the code by making changes like this, and embracing a span type. Championing these changes are not very high on my priority list right now though.

arvidn avatar Nov 10 '21 19:11 arvidn

OK, we can leave this open until someone decides to take this PR further, any help is welcome

mariano54 avatar Nov 10 '21 20:11 mariano54

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Jan 10 '22 11:01 github-actions[bot]

@arvidn can you help me out with resolving these merge conflicts?

justinengland avatar Apr 25 '23 15:04 justinengland

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Jun 26 '23 11:06 github-actions[bot]

@justinengland sorry for the delay. this message got lost in my inbox. I could fix this patch up, but I'm not sure it's worth the effort. I'm hoping we can move away from blspy to python bindings on top of chia-bls (rust library) once we have transitioned it to use BLST. That's some time out, but this PR is also really just a cleanup and minor performance fix.

arvidn avatar Jun 26 '23 11:06 arvidn

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Aug 27 '23 11:08 github-actions[bot]

Closing old PR

emlowe avatar May 13 '24 22:05 emlowe