13 Jul
2016
13 Jul
'16
10:16
On Tuesday, July 12, 2016 3:08:21 PM WEST Ladislav Slezak wrote:
My idea is to compress the loaded data, in my test the ~270kB SSH data was gzipped to ~17kB. That's a pretty high compression ratio.
Nice.
'xz' would be even a bit more efficient (~13kB). But gzip is much easier to use in Ruby, it is built-in:
That's a plus.
At read:
require "zlib" compressed = Zlib::Deflate.deflate(read_data)
[Run the installation]
At write:
write_data = Zlib::Inflate.inflate(compressed)
Imo what do you think about it?
It sounds good. But it will depend in how much memory is used to make the compression (as you said in a status call IIRC). Regards, Imo -- Imobach González Sosa YaST team at SUSE LINUX GmbH