This commit is contained in:
Perttu Ahola 2014-10-15 12:37:18 +03:00
parent dbd7e793f7
commit f052367b0c

View File

@ -50,7 +50,8 @@ ss_ serialize_volume_compressed(const pv::RawVolume<VoxelInstance> &volume)
} }
} }
std::ostringstream compressed_os(std::ios::binary); std::ostringstream compressed_os(std::ios::binary);
interface::compress_zlib(raw_os.str(), compressed_os); // NOTE: 4 uses 98% and 1 uses 58% of the CPU time of 6
interface::compress_zlib(raw_os.str(), compressed_os, 6);
ar(compressed_os.str()); ar(compressed_os.str());
} }
return os.str(); return os.str();