Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by QM (Parson)
on May 15, 2019 at 13:24 UTC ( #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 (Parson) 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
Node Status?
node history
Node Type: note [id://11100016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2019-06-19 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (83 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!