clbarnes / ncollpyde

Mesh containment and line segment intersection queries in Python (over rust)
MIT License
9 stars 0 forks source link

Use rust-numpy for data IO #1

Closed clbarnes closed 2 years ago

clbarnes commented 4 years ago

Currently goes from array-like -> numpy array -> python list -> rust vec -> rust type -> rust vec -> python list -> numpy array, which is a lot of copies and changing type information; plus vec-of-vec isn't an efficient data structure (although we don't index into the top vec so maybe it's not so bad).

Blockers

Thoughts

Don't want to copy the array more than necessary, but we may need to clone it on the rust side to prevent releasing/mutating the original memory if we were to use Into.

clbarnes commented 2 years ago

Released in v0.19