Menu

#59 Jmlc: remove reflection from accessing interface surrogates

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

Even with the --noreflection option, generated code for
checking interfaces still use reflection to lookup model
fields. (For example, if a local model field is represented by
a model field of an interface).

A possible solution for removing these reflection calls is to
instantiate a surrograte object whenever a checked object is
instantiated (ie create them in the constructor). Thus, when
accessing model methods and fields, there is no need to call
getSurrogate().

Modifying the code generated by jmlc to use this strategy
reduced the running time by 42%

Discussion

  • Roy Patrick Tan

    Roy Patrick Tan - 2003-08-11
    • summary: Remove reflection from generated interface surrogates --> Remove reflection from accessing interface surrogates
     
  • Gary T. Leavens

    Gary T. Leavens - 2003-08-15
    • milestone: --> self_reported
    • summary: Remove reflection from accessing interface surrogates --> Jmlc: remove reflection from accessing interface surrogates
     
  • Gary T. Leavens

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

    Gary T. Leavens - 2006-05-18
    • priority: 5 --> 7
     

Log in to post a comment.