AdamNiederer / faster

SIMD for humans
Mozilla Public License 2.0
1.56k stars 51 forks source link

Allow collecting the striding iterators into any collection #36

Closed vorner closed 6 years ago

vorner commented 6 years ago

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 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.

AdamNiederer commented 6 years ago

Looks good. Thanks!