@alejandro-vaz have you tried enum SmallVec { Stack(...), Heap(Vec) } solution? I have a feeling we can achieve good optimizations with it. Moving all our api specialized for stack vec and when on Vec simply use alloc provided functions instead.
Originally posted by @fereidani in #590 (comment)
anyone is welcome to make their own prototype implementation as well
@alejandro-vaz have you tried enum SmallVec { Stack(...), Heap(Vec) } solution? I have a feeling we can achieve good optimizations with it. Moving all our api specialized for stack vec and when on Vec simply use alloc provided functions instead.
Originally posted by @fereidani in #590 (comment)
anyone is welcome to make their own prototype implementation as well