yeah, you are pretty much stuck then :) Maybe you could wrap the unzip function in a set of classes with the same interface, so your app can just use one interface, but the underlying unzip is done differently depending on the platform - ie, go for the quickest way in each case.
How much compression do you get out of the DB? Could you use something else? eg use something which is just a compressed stream (as it's all one file!), rather than dealing with the zip file format. You'd then pre-prepare the file before loading it into your app, using your own compression tool. Maybe using system.io.compression ? GZip is usually quite quick. Writing something like a LZW or Huffman encoder isn't that hard, from memory, and there should be some examples around. Being you only have one file, you dont really need to use zip specifically. There used to be some compression alg's which were VERY slow to compress, but crazy quick to decompress - maybe using something custom might be a go? On Fri, Apr 13, 2012 at 09:10, johnHolmes <[email protected]> wrote: > > Nic Wise wrote >> >> >> Keep in mind that the file that is downloaded to the users device - >> .ipa - is a ZIP file already, so you will not benefit from double >> compression. If you need to keep them all together,then try using >> store, see what the size of the resulting .ipa is, and the speed >> difference. >> >> > > Good point. I'll try to explain why I need to compress the file prior to the > .ipa. > > The file is a sqlite db. It's uncompressed size is ~700mb. I need read/write > permission on that file. If I'm not wrong, all "content" file stored in the > bundle is read only, so i need, once the application is installed, to copy > the original db to a writable folder. A good candidate seems to be the > /Document folder. At this point the user will have 2 copy of the file, one > compressed and one uncompressed, readable and writable, in the /Document > folder. I know it's not good to have rendundant 200mb of data but I haven't > found any alternative to this. > > Any suggestion? > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/SharpZipLib-performances-tp4553235p4554119.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
