JFJochCompressor: Excessive allocation
This commit is contained in:
1 parent
d32a56c254
commit
e01366a75c
1 file changed
+1
-1
@@ -41,7 +41,7 @@ private:
|
||||
};
|
||||
|
||||
template <class T> std::vector<T> bitshuffle(const std::vector<T> &input, size_t block_size) {
|
||||
std::vector<T> ret(input.size() * sizeof(T));
|
||||
std::vector<T> ret(input.size());
|
||||
bshuf_bitshuffle(input.data(), ret.data(), input.size(), sizeof(T), block_size);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user