Skip to content

Commit

Permalink
core: remove best compression
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Jul 19, 2023
1 parent 69ecfd3 commit 87e5bc0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ndn-svs/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ SVSyncCore::sendSyncInterest()
Name syncName(m_syncPrefix);

#ifdef NDN_SVS_COMPRESSION
vvWire.encode();
boost::iostreams::filtering_istreambuf in;
in.push(boost::iostreams::lzma_compressor(boost::iostreams::lzma::best_compression));
in.push(boost::iostreams::array_source(reinterpret_cast<const char*>(vvWire.data()), vvWire.size()));
ndn::OBufferStream compressed;
boost::iostreams::copy(in, compressed);
vvWire = ndn::Block(svs::tlv::StateVectorLzma, compressed.buf());
vvWire.encode();
boost::iostreams::filtering_istreambuf in;
in.push(boost::iostreams::lzma_compressor());
in.push(boost::iostreams::array_source(reinterpret_cast<const char*>(vvWire.data()), vvWire.size()));
ndn::OBufferStream compressed;
boost::iostreams::copy(in, compressed);
vvWire = ndn::Block(svs::tlv::StateVectorLzma, compressed.buf());
#endif

syncName.append(Name::Component(vvWire));
Expand Down

0 comments on commit 87e5bc0

Please sign in to comment.