Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



1682 posts

Uber Geek

Trusted

Topic # 98925 9-Mar-2012 01:09 Send private message

I have written a program in PHP (Yup very slow for the job) that basically shuffles the bits of the file to be compressed before being compressed by the standard zip. It can make the zipped file 10% smaller than using zip on the un-shuffled file. It isn't fast as it is 256 times slower than using the normal zip.

I tried to shuffle compressed data files in the hope to get a little more compression but that didn't make any difference. I still have some ideas on a more advanced shuffle that might produce results but php kind of failed at handling further development.

Anyway, I am wondering what to do from here, I would like to try and make an app that for the first case, the shuffle and compression of standard files. There would be no money in it and the idea would be to release it as opensource.

I have been learning a little c++ on the arduino but am lost when it comes to pc c++ development and would like a hand it getting this going.

Any tips or comments welcome.

Create new topic
242 posts

Master Geek


  Reply # 592657 9-Mar-2012 09:23 Send private message

You may want to compare anything you do come up with to gzip, 7z, bzip2. So far I think bzip2 on --best mode is the smallest. I'm sure there's been many people who have tried what you're doing, but don't let that stop you.






1682 posts

Uber Geek

Trusted

  Reply # 592767 9-Mar-2012 13:42 Send private message

Thanks Noodles, I can't access those from inside PHP so have not tested them out.
The Scramble is a like a pre-processor so it could send its reorganised bits to 7z or bzip2.

I think others have done this as it's a very simple idea and using the basic shuffle on compressed files returns no benefits.

So I guess the code I'm look for is something that will read in a file for scrambling and output the scrambled file for processing by z7 (or what ever) and then logging the results to see what scramble key works best.

This seems kind of simple for a dos like command, but I have never done anything like that.

I have thought of using Python but I think I would want something faster.


242 posts

Master Geek


  Reply # 592780 9-Mar-2012 14:11 Send private message

You can use bzip2 inside php: http://www.php.net/manual/en/ref.bzip2.php






1682 posts

Uber Geek

Trusted

  Reply # 592794 9-Mar-2012 15:23 Send private message

*blush* thanks, will give it a try.

Create new topic





Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when new jobs are posted to our jobs board:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Sky outbid for EPL rights (Premier League Pass discussion)
Created by JonnyCam, last reply by Benoire on 19-Jun-2013 23:03 (234 replies)
Pages... 14 15 16


Slingshot Global Mode announced
Created by freitasm, last reply by driller2000 on 19-Jun-2013 23:38 (47 replies)
Pages... 2 3 4


Orcon Genius Go discussion
Created by freitasm, last reply by ptinson on 19-Jun-2013 21:22 (46 replies)
Pages... 2 3 4


Condenser Dryer: anyone has one?
Created by joker97, last reply by graemew on 18-Jun-2013 21:08 (31 replies)
Pages... 2 3


I am been sued - HELP!
Created by BaaaaD, last reply by CYaBro on 20-Jun-2013 00:24 (59 replies)
Pages... 2 3 4


Slow YouTube Response
Created by SneakerPimps, last reply by mercutio on 18-Jun-2013 21:34 (23 replies)
Pages... 2


Suggestions for good Windows FTP client please?
Created by freitasm, last reply by myfullflavour on 19-Jun-2013 23:27 (22 replies)
Pages... 2


Anyone else watching paint dry?
Created by gnfb, last reply by DravidDavid on 19-Jun-2013 19:53 (40 replies)
Pages... 2 3



Geekzone Jobs »
Most recent NZ jobs in technology:

Website needed
Posted 19-Jun-2013 22:38

Solution Architect - Pre-Sales element!
Posted 19-Jun-2013 22:38

Senior Business Analyst
Posted 19-Jun-2013 19:38

Java Developer
Posted 19-Jun-2013 19:38

RF Tester
Posted 19-Jun-2013 19:38

Motivated Systems Administrator
Posted 19-Jun-2013 19:38

Senior ASP.Net Developer
Posted 19-Jun-2013 19:38


Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.