"Efficient" has several meanings, but keep in mind that `git blame` shows that particular line was written on 2014-01-24, i.e., getting close to 2 years ago. `sub` in base has changed *radically* in the meantime.
In general, with 0.4 I think there are few cases to use ArrayViews anymore. SubArrays are much faster in many circumstances (e.g., when you're not creating a ContiguousView---try creating row slices and you'll see what I mean). SubArrays can encapsulate an arbitrary AbstractArray rather than being limited to Arrays. Best, --Tim On Thursday, October 22, 2015 02:57:46 PM John Brock wrote: > As of 0.4, when should I choose to use sub versus ArrayViews.jl? The > ArrayViews.jl README mentions that sub uses a less efficient view > representation, but just how much less efficient is it? Is there ever a > good reason to use sub instead of ArrayViews, despite the less efficient > representation? > > -John