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

Reimplement IxDyn, with no allocation for the small dimension case #301

Merged
merged 12 commits into from
Apr 4, 2017

Conversation

bluss
Copy link
Member

@bluss bluss commented Apr 3, 2017

  • Current parameter for inline case is CAP = 4, above which the dimension is stored as a Box<[T]>.
  • Breaking change where Dim<Vec<Ix>> as a dimension is replaced by Dim<IxDynImpl>. Vec and slices still implement IntoDimension → IxDyn the same way, though.
  • Performance improvements for usage of IxDyn across the board, maybe not as much as you would think. (For example: Binary operations on arrays don't care about dimension type if both operands are contiguous, so then we can't improve that.)

Fixes #285

@bluss
Copy link
Member Author

bluss commented Apr 3, 2017

Ok, beta ICE we see is fixed upstream <3 rust-lang/rust/pull/40813

@bluss bluss merged commit dcd9012 into master Apr 4, 2017
@bluss bluss deleted the ixdyn branch April 4, 2017 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant