Rockbox Development > Feature Ideas

treat zip files as folders

<< < (3/5) > >>

saratoga:

--- Quote from: solrize on September 14, 2008, 07:45:43 PM ---Intercepting the file coming in and unzipping it on the fly sounds like the right approach.  I'm surprised if there's nothing like it already. 

--- End quote ---

As I said, its difficult to implement, so its not surprising that no one has done it.  As things become more difficult, the odds of them being done decreases rapidly . . .

Strife89:

--- Quote from: solrize on September 14, 2008, 03:33:44 PM ---I suspect strife98's slow Palm unzipping is due to file i/o slowness rather than because of the unzip algorithm itself.
--- End quote ---

Indeed, I knew about that, but failed to point it out; though unzipping is still slower than copying a non-compressed file (and not just because it unzips to RAM and then copies).

My Palm takes ~20 seconds to copy 5 MB from RAM to the card. The same file, with the same card, with a good card reader, takes 3 or 4 seconds on my PC.



--- Quote from: Strife89 on September 14, 2008, 03:24:43 PM ---Though I agree that it probably wouldn't justify adding ZIP support to the core of the firmware, I'd still love to see a plugin. The user could "launch" a ZIP file and just see a list of contents, then choose a file to extract.
--- End quote ---

I feel as though noone even thought about my suggestion. I probably should add that a file could be copied from the ZIP file to its uncompressed self elsewhere on the storage media, instead of trying to route it directly to the appropriate player/ plugin.

solrize:

--- Quote from: Strife89 on September 14, 2008, 08:34:31 PM ---My Palm takes ~20 seconds to copy 5 MB from RAM to the card. The same file, with the same card, with a good card reader, takes 3 or 4 seconds on my PC.

--- End quote ---
You can't tell anything about unzip speed, by comparing a transfer through the Palm against a transfer through a card reader.  Try the following:

Put the 1MB unzipped file on the card, into the Palm.  On the palm, copy the unzipped file to another file, and see how long it takes.  Then put the zipped version on the card, put the card into the Palm, and time how long it takes the Palm to unzip the file to another file.

LinusN:

--- Quote from: solrize on September 14, 2008, 05:29:55 PM ---I think the gain would not be marginal; the more I think about it, the more I realize that almost all of my music downloads are zips, though I'm maybe non-typical in that I don't use itunes and I don't rip cd's that often.

--- End quote ---
In my opinion, the gain is still very marginal. The vast majority of users do just fine without ZIP files.

Besides, there's a very easy workaround: unpack the ZIP files to separate folders on the player.

Strife89:

--- Quote from: Strife89 on September 14, 2008, 03:24:43 PM ---I keep a lot of text files and tracker-format songs in a few ZIPs, and this usually saves a pretty good deal of space (especially because the smaller files are no longer hogging a 64KB cluster when they're ~10KB, and the like on FAT). ... Though I agree that it probably wouldn't justify adding ZIP support to the core of the firmware, I'd still love to see a plugin.
--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version