History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANNOGEN-22
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Patrick Calahan
Reporter: Sudhaker Raj
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Annogen

Repeatative jdk1.5 detection causing code to run slow

Created: 07/Aug/07 11:23 AM   Updated: 10/Aug/07 10:21 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive call_tree.zip (12 kb)
2. Java Source File TigerDelegate.java (5 kb)

Environment: jdk-1.4.2 + axis2

Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

Reported @ http://www.theserverside.com/discussions/thread.tss?thread_id=46496


We observed big performance degradation when we upgraded our Axis services to Axis2. This was bit socking because Axis2 is re-architected from Axis and supposed to be faster and better alternative than classic Axis.

After extensive debugging efforts we found that code form annogen-0.1.0.jar was spending a lot of time in detecting JDK1.5 presence. We fixed the issue by modifying following methods to avoid detection repetitively and now our services flies.

org.codehaus.jam.internal.TigerDelegate. isTigerJavadocAvailable (JamLogger logger)
org.codehaus.jam.internal.TigerDelegate.isTigerReflectionAvailable(JamLogger logger)

Hope this helps someone who is facing similar problem.

Thanks,
Sudhaker

I've attached the jprofiler call tree and fixed code for your quick eference.

Thanks,



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Davanum Srinivas - 10/Aug/07 10:21 AM
Fixed in svn revision - 39.

thanks,
dims