This paper shows how to substantially increase the performance of Smalltalk programs by creating more classes to take advantage of polymorphism. An improved implementation of the well-known message match:, using this ...
详细信息
ISBN:
(纸本)159593491X
This paper shows how to substantially increase the performance of Smalltalk programs by creating more classes to take advantage of polymorphism. An improved implementation of the well-known message match:, using this and other techniques, can run up to twice as fast as the current inlined implementation VisualWorks Smalltalk includes. In this particular case, creating more classes is shown to be so powerful as to become preferable to heavy use of identity checks on immediate objects by a margin of up to 20% on average. In addition, non-inlined implementations compare quite well to the existing inlined implementation of match:. While they can run faster in some cases, their overall performance falls behind by no more than a factor of *** is a quick summary of chapter 3 from the book currently being written by the author. It is due to be published in 2007.
Polymorphic inline caches (PICs) provide a new way to reduce the overhead of polymorphic message sends by extending inline caches to include more than one cached lookup result per call site. For a set of typical objec...
详细信息
The use of object-orientedprogramming techniques for the representation of morphological and syntactic knowledge is explored. The class/subclass and the rule/exception distinctions are captured by the inheritance mec...
详细信息
The use of object-orientedprogramming techniques for the representation of morphological and syntactic knowledge is explored. The class/subclass and the rule/exception distinctions are captured by the inheritance mechanism, which allows overwriting inherited information. Morphological and syntactic functions are represented by a function/inverse function (role relationship) between objects. These points will be illustrated with an object-oriented implementation of Incremental Procedural Grammar using ORBIT.
暂无评论