I don't have the scalar_collect, for two reasons. First, it seem to heavily rely on the fact Vec is continuous piece of memory (or, at least doesn't seem to be easily adaptable to arbitrary iterator which could be collected). Second, the scalar_fill seems like a good enough alternative for that case.
This is for https://github.com/AdamNiederer/faster/issues/35.
I don't have the
scalar_collect
, for two reasons. First, it seem to heavily rely on the factVec
is continuous piece of memory (or, at least doesn't seem to be easily adaptable to arbitrary iterator which could be collected). Second, thescalar_fill
seems like a good enough alternative for that case.