Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Data compression by 50% + : is it possible?

by QM (Parson)
on May 15, 2019 at 13:24 UTC ( [id://11100016]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found