Mailinglist Archive: yast-devel (35 mails)

< Previous Next >
Re: [yast-devel] YaST Installer Memory Consumption (the Ruby part)
  • From: Imobach González Sosa <igonzalezsosa@xxxxxxx>
  • Date: Wed, 13 Jul 2016 11:16:51 +0100
  • Message-id: <133497254.OHictv1eRh@gofio>
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
< Previous Next >
Follow Ups