-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
An unsafe vector could also provide push!
, pop!
, etc which grow/shrink the view, respectively, overwriting entries of the parent.
This would be used via uview = push!(uview, val)
. These can be significantly faster than base vector push!/pop!, since we can avoid both the ccall
and the stupid second read-increment-store due to the fact that vectors store both length and number of rows (why, oh why).
One would need to also store a pointer_from_objref
to the underlying vector, in order to not exceed its length, and resize it if necessary. See JuliaLang/julia#24909.
Metadata
Metadata
Assignees
Labels
No labels