http://qs321.pair.com?node_id=11100016


in reply to Data compression by 50% + : is it possible?

Given the data restrictions, has anyone considered using vec to compose a set?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: Data compression by 50% + : is it possible?
by tybalt89 (Monsignor) on May 15, 2019 at 14:45 UTC

    I would have if vec handled 6 bit fields, but sadly it doesn't.

      Hmmm. I was just thinking of a 90-bit vec as a set. So the bits in vec(expr, offset, bits) is 1.

      I've probably missed some criterion why the vec can't be interpreted as 8bit chars for output.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

        The average line size of the old format like demonstrated by the OP's code is ~ 14 characters + newline

        90 bits need 11.25 bytes per line.

        Not that much of a big win.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice