On 2019-02-26T11:53:43 +0100
Peter Kriens <peter.kri...@aqute.biz> wrote:

> In Jars, the entries are compressed not the file itself. You should therefore 
> be able to distribute the bundles with uncompressed entries. A tiny program 
> can then find the address on disk where a specific entry resides in the zip 
> file and do the mmap directly from the bundle's entry. Each zip file has a 
> directory at the end that is not hard to parse.

Hm, yes! I didn't consider this one. I suspect determining the file
offsets won't be an insurmountable problem, and the archive entries
tell me if the data is compressed or not. I can reject compressed
resources at run-time.

> Only disadvantage I see is that the files will be larger during transfer.

The 3D model data doesn't compress all that well anyway.

> In my experience it is always worth it to go to extreme lengths to not create 
> an alternative distribution channel in your system. One is already more than 
> enough in complexity.

I agree wholeheartedly!

-- 
Mark Raynsford | http://www.io7m.com

Attachment: pgpBT8W3SdM0F.pgp
Description: OpenPGP digital signature

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to