home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Transparent ZIP Support For Storing Skins
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="c.hilding" data-source="post: 136181" data-attributes="member: 26949"><p>Transparent ZIP support for skin storage can be implemented by using a wrapper function that is called instead of reading directly from the skin directory. I.e. an "fopen('./skins/bw2/back.jpg')" would be "skinwrapper('bw2', 'back.jpg')".</p><p></p><p>This approach has been proven effective by endless other projects. And it doesn't consume much CPU as it only reads the zip file index and then gets that specific file, without reading the whole ZIP file into RAM. As for a slowdown in access times, it is negligible and ultimately unnoticeable since it is possible to perform decompression transparently if you're using a good implementation.</p><p></p><p><em>This feature has many benefits, from leveraging file system abuse (each skin houses about 750 files), to bringing down the whole skin size by 10-80%.</em></p></blockquote><p></p>
[QUOTE="c.hilding, post: 136181, member: 26949"] Transparent ZIP support for skin storage can be implemented by using a wrapper function that is called instead of reading directly from the skin directory. I.e. an "fopen('./skins/bw2/back.jpg')" would be "skinwrapper('bw2', 'back.jpg')". This approach has been proven effective by endless other projects. And it doesn't consume much CPU as it only reads the zip file index and then gets that specific file, without reading the whole ZIP file into RAM. As for a slowdown in access times, it is negligible and ultimately unnoticeable since it is possible to perform decompression transparently if you're using a good implementation. [I]This feature has many benefits, from leveraging file system abuse (each skin houses about 750 files), to bringing down the whole skin size by 10-80%.[/I] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Transparent ZIP Support For Storing Skins
Contact us
RSS
Top
Bottom