Jason Delport Home

Blog Feed Blog Feed

Paxmodept Website Paxmodept Website

Contact Information


Jason Delport

+44(0)7931445721

jason@paxmodept.com

Download vCard


Mobile Portal


~mobile.paxmodept.com~
QR Code

Blog Archive & Stats


MonthPosts
June 2010(2)
May 2010(1)
April 2010(4)
February 2010(1)
January 2010(2)
December 2009(1)
November 2009(3)
October 2009(3)
September 2009(7)
August 2009(1)
July 2009(2)
June 2009(4)
May 2009(7)
April 2009(5)
March 2009(10)
February 2009(10)
January 2009(19)
December 2008(11)
November 2008(16)
October 2008(28)
September 2008(7)
August 2008(19)
July 2008(17)
June 2008(13)
May 2008(11)
April 2008(11)
March 2008(18)
February 2008(17)
January 2008(19)
December 2007(8)
November 2007(29)
October 2007(38)
September 2007(30)
August 2007(50)
July 2007(46)
June 2007(38)
May 2007(20)
April 2007(16)
March 2007(35)
February 2007(28)
January 2007(36)
December 2006(26)
November 2006(42)
October 2006(39)
September 2006(26)
August 2006(16)
July 2006(4)
Total796


© 2010 Jason Delport

Java ME Discussion Point

During our period of problems with the Samsung Blackjack a number people recommended that we collapse the package structure in our JAR files. Steve and I have read about this before (ages ago) but we have never really considered implementing it.

And then last night I read this post on the Sun Java Forums. The person in question also mentions this optimisation in another context.

So my question is: what are the benefits of collapsing the directory structure in JAR files? Was this a MIDP 1.0 specific optimisation? Should we use it in the context of MIDP 2.0 only development? Opinions?




~Comments~

C. Enrique Ortiz declares...

By collapsing directory structures (and collapsing package names), you are reducing the aggregated length of all package names (since you are reducing the number of and the length of fully qualified class names), which results in reducing the overall size of the generated bytecode.

Yes, obfuscation helps with this.

ceo

Date Tue, 11 Sep 2007 at 19:09:28

Jason declares...

Ah ha! Light goes on. Do collapsed package names serve any other purpose other than size? Do you know of any JVM's that battle with long package names/directory structures?

Thanks. :)

Date Tue, 11 Sep 2007 at 19:35:22

C. Enrique Ortiz declares...

1. to help make code uglier and unmaintainable -- call it job security!

2. no, i dunno of any

:-)

ceo

Date Tue, 11 Sep 2007 at 22:19:27

~Add Comment~

Name
Email
Website
Website
Website
Comment (No HTML)
Human? Human?