Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2099

Make BasePage.getPageId() final

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Store
    • None
    • Performance

    Description

      When I did some profiling of Derby running with the test client in DERBY-1961, the profiling tool (Sun Studio's collect and analyzer) reported that BasePage.getPageId() used much CPU (although the method does almost nothing). Adding the 'final' keyword to the method definition seems to reduce the CPU usage and increase the throughput.

      Attachments

        1. getpageid.diff
          0.5 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: