Closed molpopgen closed 3 years ago
All of the current data access functions are range checked, yet we generate the final return value with [], which is also range checked. The second accesses should use get_unchecked.
[]
get_unchecked
Another idea is to match on get, returning an error when None is seen.
get
None
Going to close this for now. It is hard to argue this is a major bottleneck, and the extra safety is probably a good thing.
All of the current data access functions are range checked, yet we generate the final return value with
[]
, which is also range checked. The second accesses should useget_unchecked
.