Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed-up CArray.make with initial value #644

Merged
merged 2 commits into from
Apr 27, 2020
Merged

Speed-up CArray.make with initial value #644

merged 2 commits into from
Apr 27, 2020

Conversation

yallop
Copy link
Owner

@yallop yallop commented Apr 27, 2020

See #597. This makes the function around twice as fast on my machine. The changes are:

  • Mark ctypes_write [@@noalloc]
  • Improve CArray.fill by eliminating some allocations and moving some type dispatch out of the loop

@yallop yallop merged commit 059916b into yallop:master Apr 27, 2020
@yallop yallop deleted the carray-make-speedup branch April 27, 2020 17:31
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.

1 participant