You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this could be vastly improved by using some form of 2d-bitmask to look up if a cell in a row or column is present or not, or if a row / column is incomplete. So instead of 64 bits per element, we could reduce that to 1 bit per element.
We can either look for a small library out there to use or we can write this our selves.
The text was updated successfully, but these errors were encountered:
liamsi
changed the title
Proposal: use some light-weight bitmask instead of gonums's mat.Dense
Proposal: use light-weight bitmask instead of gonums's mat.Dense
Apr 2, 2021
This float64 slice
https://github.com/lazyledger/rsmt2d/blob/ef1d6c54461edaa428b5720835b6b522c18defff/extendeddatacrossword.go#L52-L63
is used to initialize a dense matrix: https://github.com/lazyledger/rsmt2d/blob/ef1d6c54461edaa428b5720835b6b522c18defff/extendeddatacrossword.go#L82
It looks like this could be vastly improved by using some form of 2d-bitmask to look up if a cell in a row or column is present or not, or if a row / column is incomplete. So instead of 64 bits per element, we could reduce that to 1 bit per element.
We can either look for a small library out there to use or we can write this our selves.
The text was updated successfully, but these errors were encountered: