Annogen
  1. Annogen
  2. ANNOGEN-22

Repeatative jdk1.5 detection causing code to run slow

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Component/s: None
    • Labels:
      None
    • Environment:
      jdk-1.4.2 + axis2
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      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,

        Activity

        Hide
        Davanum Srinivas added a comment -

        Fixed in svn revision - 39.

        thanks,
        dims

        Show
        Davanum Srinivas added a comment - Fixed in svn revision - 39. thanks, dims

          People

          • Assignee:
            Patrick Calahan
            Reporter:
            Sudhaker Raj
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: