Jump to content
Excelsior Forums
TomasW

Compiling JLayer API V1.0

Recommended Posts

Hi,

I'm not sure if this qualifies as a bug or defect, but one of the classes in the JLayer API takes a very long time to compile.

Excelsior JET v4.1 Standard Edition (c) Excelsior 1997,2005
Active J2SE Version 1.5.0_05 (profile 56)
[...]
  3% done, 394/410 to go: [Path to jar]:/javazoom/jl/decoder/huffcodetab.class
errors(0), warnings(0), notes(0); bytes(210148), time 147.72
[...]
Total compilation time 4:30.14

The jar file can be downloaded from http://www.javazoom.net/javalayer/sources.html

System info: 2,8Ghz CPU, 2GB ram.

OS: Windows XP, SP2

Is there anything I can do to decrease the compilation time?

Best regards,

TomasW

Share this post


Link to post
Share on other sites

Hello,

Thank you for this report.

We have downloaded JLayer1.0 and reproduced very slow compilation.

We will investigate it, and I'll let you know if we will find a way to decrease the compilation time.

Regards,

-AlexM.

Share this post


Link to post
Share on other sites

Hello,

In the JLayer 1.0, there is a very huge method, and compiler spends a lot of time optimizing it.

Unfortunately, it is not easy to fix. We have taken this sample into consideration, and we'll try to fix it in the future versions of JET.

However, the optimizing compiler can be disabled for particular methods.

To disable optimizing compiler, create a text file in any text editor, and list all methods, that should not be optimized, in the following format, one method per line:

<any string>:  <fully qualified name of the class, with packages separated by '/'>.<method name><method signature>

Save this file with .vaz extension, and add the line

!module <name of text file with method list>.vaz

to the JET project file (.prj).

For example, for JLayer 1.0, make text file jlayer.vaz with the following contents:

longopt: javazoom/jl/decoder/huffcodetab.<clinit>()V

And add the line

!module jlayer.vaz

into the JET project file.

This substantially decreases the compilation time.

Regards,

-AlexM.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×