Skip to content

Conversation

jakirkham
Copy link
Contributor

Before starting the n_targets for-loop, preallocate an array for n_iter_ to store each iteration length into as we know how many values we need and of what type. This is a pretty mild improvement by itself, but it should make it a bit easier to Cythonize the code and parallelize this loop.

xref: #35
xref: #41

Before starting the `n_targets` `for`-loop, preallocate an array for
`n_iter_` to store each iteration length into as we know how many values
we need and of what type. This is a pretty mild improvement by itself,
but it should make it a bit easier to Cythonize the code and parallelize
this loop.
@tksmd tksmd merged commit edeecff into hacarus:development Jul 31, 2018
@tksmd
Copy link
Contributor

tksmd commented Jul 31, 2018

@jakirkham Thank you for the PR. LGTM and merged :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants