Make BasePage.getPageId() final
-------------------------------

                 Key: DERBY-2099
                 URL: http://issues.apache.org/jira/browse/DERBY-2099
             Project: Derby
          Issue Type: Improvement
          Components: Performance, Store
    Affects Versions: 10.3.0.0
            Reporter: Knut Anders Hatlen
         Assigned To: Knut Anders Hatlen
            Priority: Trivial


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to