JFJochCompressor: Excessive allocation
This commit is contained in:
@@ -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