Menu

#60 Jmlc efficiency: reduce error message generation cost

open
nobody
6
2013-10-27
2003-08-11
No

When a locally specified precondition fails, jmlc generated
code generates error strings even before checking the
preconditions of the superclass. Because preconditions are
or'ed together, the error string may not be needed.

Because string operations in Java are not very efficient,
removing the unneccessary error string generation can
substantially reduce running time.

In a test, removing error string generation altogether
reduced running time by 4%, the largest decrease after
removing reflection. (without reflection, the 4% decrease
becomes abt. 30%).

Discussion

  • Roy Patrick Tan

    Roy Patrick Tan - 2003-08-11
    • labels: --> jmlrac (i.e., the jmlc tool)
     
  • Gary T. Leavens

    Gary T. Leavens - 2003-08-15
    • milestone: --> self_reported
    • assigned_to: nobody --> cheon
    • summary: Reduce error message generation cost --> Jmlc efficiency: reduce error message generation cost
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-18
    • priority: 5 --> 6
    • assigned_to: cheon --> nobody
     

Log in to post a comment.