Avoiding allocations in `view`s

One option is UnsafeArrays; see e.g. this post: Array views becoming dominant source of memory allocation - #32 by oschulz. The current rule of thumb is that creating an array view will allocate if the view is used as an argument to a non-inlined function or if it is returned from a function.

6 Likes