Closed elmato closed 2 years ago
When deserializing a std::vector of unsigned char it will fall into the generic datastream operator for vectors, making the deserialization of a large array too slow
template<typename Stream, typename T> datastream<Stream>& operator << ( datastream<Stream>& ds, const std::vector<T>& v ) { ds << unsigned_int( v.size() ); for( const auto& i : v ) ds << i; return ds; }
Potential candidate for rc3 but not a release blocker
This was fixed by https://github.com/AntelopeIO/cdt/pull/27.
When deserializing a std::vector of unsigned char it will fall into the generic datastream operator for vectors, making the deserialization of a large array too slow