You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often assume the arr[begin] indexing syntax is a zero-cost abstraction, assuming arr is known to use one-based indexing at compile time. However, the begin is actually firstindex(arr), which returns heavy types like BigInt, which relies on ccall a lot, in some cases:
AFAIK all the concrete AbstractArray subtypes defined in Base use one-based indexing, so it seems like it should be OK for firstindex(arr) to just return 1 (of type Int) for any concrete type that comes by default with Julia.