Results 1 to 7 of 7

Thread: phafre

  1. #1
    Member
    Join Date
    Dec 2012
    Location
    japan
    Posts
    159
    Thanks
    30
    Thanked 62 Times in 38 Posts

    phafre

    phafre uses sixpack's routine. it's similar to huffman coding.
    Code:
    To compress
        phafre c[#1,#2,#3,#4] infile outfile
        #1 0..3    context order. default is 2
        #2 0..15   increment of symbol frequency
        #3 0..255  max frequency count(# x 30)
        #4 0..4000 max memsize. #+1 MBytes. default is 1000
        if those are empty or not number, gives auto value.
    Example for compress
        phafre c in out
        phafre c2,4,30 in out
        phafre c1,a,a,100 in out
        phafre c,,,200 in out
    
    
     To decompress: phafre d infile outfile
    Attached Files Attached Files

  2. Thanks:

    surfersat (28th September 2014)

  3. #2
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    330
    Thanks
    190
    Thanked 54 Times in 38 Posts
    Quck test results:

    Code:
    enwik8   34,309,237  c3,15,0,4000
    SFC.tar  18,998,259  c3,15,0,4000
    Last edited by comp1; 28th September 2014 at 07:42.

  4. Thanks:

    xezz (28th September 2014)

  5. #3
    Member
    Join Date
    Dec 2012
    Location
    japan
    Posts
    159
    Thanks
    30
    Thanked 62 Times in 38 Posts
    compression is improved a little.
    Attached Files Attached Files

  6. #4
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    330
    Thanks
    190
    Thanked 54 Times in 38 Posts
    Slightly better on enwik8 and slightly worse on SFC corpus.

    Code:
    enwik8   34,293,837  c3,15,0,4000
    SFC.tar  19,043,499  c3,15,0,4000

  7. #5
    Member
    Join Date
    Dec 2012
    Location
    japan
    Posts
    159
    Thanks
    30
    Thanked 62 Times in 38 Posts
    Thanks! v0.3's optimazaiton is better for small files whene order is higher.

  8. #6
    Member
    Join Date
    Jun 2018
    Location
    Slovakia
    Posts
    175
    Thanks
    49
    Thanked 11 Times in 11 Posts
    I´ve tested phafre0.3 with maximal possible compression settings to compress 93 MB hexadecimal testfile, but ratio is only 53%. Are there any plans to new version?

  9. #7
    Member
    Join Date
    Dec 2012
    Location
    japan
    Posts
    159
    Thanks
    30
    Thanked 62 Times in 38 Posts

    v2.0

    if argument is nothing, usage is printed.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •