Journal Article10.1145/351159.351174
Efficient message dispatch in object-oriented systems
Mayur Naik,Rajeev Kumar +1 more
26
TL;DR: This paper presents a time and space efficient implementation of the switch that employs the table- based technique when an array lookup outperforms a binary search and the tree-based technique when abinary search outperforms an array Lookup.
read more
Abstract: Single dispatch involves performing at run-time a multi-way switch over the possible classes of the receiver. Most object-oriented systems implement this switch as an array lookup using a table-based technique or as a binary search using a tree-based technique. However, each of these is the best choice only under a particular circumstance; neither outperforms the other under all circumstances. In this paper, we present a time and space efficient implementation of the switch that employs the table-based technique when an array lookup outperforms a binary search and the tree-based technique when a binary search outperforms an array lookup. Further, when neither an array lookup nor a binary search is superior, our scheme blends the two techniques in a manner that gains the benefits of both without suffering the disadvantages of either. We relate our scheme to recent work and discuss extending it to implement multiple dispatch.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
Multiple dispatch in practice
Radu Muschevici,Alex Potanin,Ewan Tempero,James Noble +3 more
- 19 Oct 2008
TL;DR: An empirical study of the use of multiple dispatch in practice is presented, considering six languages that support multiple dispatch, and also investigating the potential for several dispatch in Java programs.
61
Model replication: transformations to address model scalability
Yuehua Lin,Jeff Gray,Jing Zhang,Steve Nordstrom,Aniruddha Gokhale,Sandeep Neema,Swapna S. Gokhale +6 more
TL;DR: The idea of automated model replication through a model transformation process that expands the number of elements from the base model and makes the correct connections among the generated modeling elements is presented.
46
Walkabout Revisited: The Runabout
Christian Grothoff
- 21 Jul 2003
TL;DR: A variation of the visitor pattern which allows programmers to write visitor-like code in a concise way is presented which can be significantly faster than existing implementations of multiple dispatch for Java, such as MultiJava.
44
Patent
Adaptive dispatch of received messages to code using inter-positioned message modification
Luis Felipe Cabrera,David Wortendyke,George P. Copeland,Erik B. Christensen,David E. Levin,Dhananjay M. Mahajan,Scott Christopher Seely,Daniel W. Roth +7 more
- 23 Jan 2004
TL;DR: In this article, a message is modified to include additional information helpful to the dispatching component, and the message is more flexible in identifying the processing that should occur with the message.
37
Fast algorithm for creating space efficient dispatching tables with application to multi-dispatching
Yoav Zibin,Joseph Gil +1 more
- 04 Nov 2002
TL;DR: This paper shows how to extend one such solution to the multiple-inheritance~(MI) setting, with an increase to the space requirement by a small factor of κ, which can be thought of as a metric of the complexity of the topology of the inheritance hierarchy.
33
References
•Book
Computers and Intractability: A Guide to the Theory of NP-Completeness
Michael Randolph Garey,David S. Johnson +1 more
- 01 Jan 1979
TL;DR: The second edition of a quarterly column as discussed by the authors provides a continuing update to the list of problems (NP-complete and harder) presented by M. R. Garey and myself in our book "Computers and Intractability: A Guide to the Theory of NP-Completeness,” W. H. Freeman & Co., San Francisco, 1979.
•Book
The C++ Programming Language
Bjarne Stroustrup
- 01 Jan 1985
TL;DR: Bjarne Stroustrup makes C even more accessible to those new to the language, while adding advanced information and techniques that even expert C programmers will find invaluable.
8.1K
•Book
The Java Language Specification
James Gosling,Bill Joy,Guy L. Steele +2 more
- 12 Sep 1996
TL;DR: The Java Language Specification, Second Edition is the definitive technical reference for the Java programming language and provides complete, accurate, and detailed coverage of the syntax and semantics of the Java language.
•Book
The Design and Evolution of C
Bjarne Stroustrup
- 01 Jan 1994
TL;DR: The Prehistory of C++ and the C++ Language Design Rules, 1985-1993, and Looking Ahead, which describes the future of the language and its structure, are published.
577
Related Papers (5)
Craig Chambers,Weimin Chen +1 more
- 01 Oct 1999
Gregor Kiczales,Luis O. Rodriguez +1 more
- 01 May 1990