Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Conversation

vene
Copy link
Collaborator

@vene vene commented Aug 15, 2016

Disadvantage:
. This change brings back numpy headers into the cython files. (Might impact build time, maybe just less elegant and unnecessary.))
Not anymore; switched to cython.memoryview.array.

Advantages:
. no risk of leaks
. more readable code

No performance regression.
To remove the numpy header import, I could replace the np.empty allocations with cpython.array allocations. Those are much less readable but slightly faster. It has no impact, though, since all allocations are now completely outside of any loops.

@vene vene changed the title Remove naked mallocs and use numpy and refcounting Remove naked mallocs and use cython.cvarray +refcounting Aug 15, 2016
@vene
Copy link
Collaborator Author

vene commented Aug 16, 2016

Merged by rebase in 8a4b483.

@vene vene closed this Aug 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant