{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T04:39:03Z","timestamp":1750307943541,"version":"3.41.0"},"reference-count":47,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2007,11,1]],"date-time":"2007-11-01T00:00:00Z","timestamp":1193875200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2007,11]]},"abstract":"<jats:p>A fundamental problem in the implementation of object-oriented languages is that of a frugal implementation of dynamic dispatching, that is, a small footprint data structure that supports quick response to runtime dispatching queries of the following format: which method should be executed in response to a certain message sent to a given object. Previous theoretical algorithms for this problem tend to be impractical due to their conceptual complexity and large hidden constants. In contrast, successful practical heuristics lack theoretical support.<\/jats:p>\n          <jats:p>\n            The contribution of this article is in a novel\n            <jats:italic>type slicing<\/jats:italic>\n            technique, which results in two dispatching schemes: TS and CT\n            <jats:sub>\n              <jats:italic>d<\/jats:italic>\n            <\/jats:sub>\n            . We make the case for these schemes both practically and theoretically. The empirical findings on a corpus of 35 hierarchies totaling some 64 thousand types from eight different languages, demonstrate improvement over previous results in terms of the space required for the representation, and the time required for computing it.\n          <\/jats:p>\n          <jats:p>The theoretical analysis is with respect to \u03b9, the best possible compression factor of the dispatching matrix. The results are expressed as a function of a parameter \u03ba, which can be thought of as a metric of the complexity of the topology of a multiple inheritance hierarchy. In single inheritance hierarchies \u03ba = 1, but although \u03ba can be in the order of the size of the hierarchy, it is typically a small constant in actual use of inheritance; in our corpus, the median value of \u03ba is 5, while its average is 6.4.<\/jats:p>\n          <jats:p>The TS scheme generalizes the famous interval containment technique to multiple inheritance. TS achieves a compression factor of \u03b9\/\u03ba, that is, our generalization comes with an increase to the space requirement by a small factor of \u03ba. The pay is in the dispatching time, which is no longer constant as in a naive matrix implementation, but logarithmic in the number of different method implementations. In practice, dispatching uses one indirect branch and, on average, only 2.5 binary branches.<\/jats:p>\n          <jats:p>\n            The CT schemes are a sequence of algorithms CT\n            <jats:sub>1<\/jats:sub>\n            , CT\n            <jats:sub>2<\/jats:sub>\n            , CT\n            <jats:sub>3<\/jats:sub>\n            , \u2026, where CT\n            <jats:sub>\n              <jats:italic>d<\/jats:italic>\n            <\/jats:sub>\n            uses\n            <jats:italic>d<\/jats:italic>\n            memory dereferencing operations during dispatch, and achieves a compression factor of 1\/\n            <jats:italic>d<\/jats:italic>\n            \u03b9\n            <jats:sup>\n              1\u22121\/\n              <jats:italic>d<\/jats:italic>\n            <\/jats:sup>\n            in a\n            <jats:italic>single inheritance<\/jats:italic>\n            setting. A generalization of these algorithms to a\n            <jats:italic>multiple inheritance<\/jats:italic>\n            setting, increases the space by a factor of (2\u03ba)\n            <jats:sup>\n              1\u22121\/\n              <jats:italic>d<\/jats:italic>\n            <\/jats:sup>\n            . This trade-off represents the first bounds on the compression ratio of constant-time dispatching algorithms. We also present an\n            <jats:italic>incremental<\/jats:italic>\n            variant of the CT\n            <jats:sub>\n              <jats:italic>d<\/jats:italic>\n            <\/jats:sub>\n            suited for languages such as Java.\n          <\/jats:p>","DOI":"10.1145\/1290520.1290525","type":"journal-article","created":{"date-parts":[[2007,12,7]],"date-time":"2007-12-07T19:19:01Z","timestamp":1197055141000},"page":"5","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Efficient dynamic dispatching with type slicing"],"prefix":"10.1145","volume":"30","author":[{"given":"Joseph (Yossi)","family":"Gil","sequence":"first","affiliation":[{"name":"Technion\u2014Israel Institute of Technology, Haifa, Israel"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yoav","family":"Zibin","sequence":"additional","affiliation":[{"name":"Technion\u2014Israel Institute of Technology, Haifa, Israel"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2007,11]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/504282.504291"},{"key":"e_1_2_1_2_1","unstructured":"Arnold P. and Gosling J. 1996. The Java Programming Language. The Java Series. Addison-Wesley Reading MA.   Arnold P. and Gosling J. 1996. The Java Programming Language. The Java Series. Addison-Wesley Reading MA."},{"key":"e_1_2_1_3_1","unstructured":"Bobrow D. G. DeMichiel L. G. Gabriel R. P. Keene S. E. Kiczales G. and Moon D. A. 1988. Common LISP object system specification. X3J13 Document 88-002R.  Bobrow D. G. DeMichiel L. G. Gabriel R. P. Keene S. E. Kiczales G. and Moon D. A. 1988. Common LISP object system specification. X3J13 Document 88-002R."},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/28697.28700"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(76)80045-1"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/320385.320407"},{"volume-title":"Proceedings of the 37th International Conference on Technology of Object-Oriented Languages and Systems (TOOLS'00 Pacific)","author":"Cohen T.","key":"e_1_2_1_8_1","unstructured":"Cohen , T. and Gil , J . 2000. Self-calibration of metrics of Java methods . In Proceedings of the 37th International Conference on Technology of Object-Oriented Languages and Systems (TOOLS'00 Pacific) ( Sydney, Australia). Prentice-Hall, Englewood Cliffs, NJ, 94--106. Cohen, T. and Gil, J. 2000. Self-calibration of metrics of Java methods. In Proceedings of the 37th International Conference on Technology of Object-Oriented Languages and Systems (TOOLS'00 Pacific) (Sydney, Australia). Prentice-Hall, Englewood Cliffs, NJ, 94--106."},{"volume-title":"Smalltalk-80: Bits of History, Words of Advice","author":"Conroy T. J.","key":"e_1_2_1_9_1","unstructured":"Conroy , T. J. and Pelegri-Llopart , E. 1983. An assessment of method-lookup caches for Smalltalk-80 implementations . In Smalltalk-80: Bits of History, Words of Advice . Addison-Wesley , Reading, MA . Conroy, T. J. and Pelegri-Llopart, E. 1983. An assessment of method-lookup caches for Smalltalk-80 implementations. In Smalltalk-80: Bits of History, Words of Advice. Addison-Wesley, Reading, MA."},{"volume-title":"Object-Oriented Programming---An Evolutionary Approach","author":"Cox B. J.","key":"e_1_2_1_10_1","unstructured":"Cox , B. J. 1986. Object-Oriented Programming---An Evolutionary Approach . Addison-Wesley , Reading, MA . Cox, B. J. 1986. Object-Oriented Programming---An Evolutionary Approach. Addison-Wesley, Reading, MA."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/800017.800542"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/28395.28434"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539791194094"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/74877.74900"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/165854.165902"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/217838.217851"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/236338.236369"},{"key":"e_1_2_1_19_1","volume-title":"Technical Report TRCS94-20, University of California","author":"Driesen K.","year":"1995","unstructured":"Driesen , K. , H\u00f6lzle , U. , and Vitek , J . 1995 a. Message dispatch on modern computer architectures. Technical Report TRCS94-20, University of California , Santa Barbara, CA . Comput. Sci ,. Feb. 9. Driesen, K., H\u00f6lzle, U., and Vitek, J. 1995a. Message dispatch on modern computer architectures. Technical Report TRCS94-20, University of California, Santa Barbara, CA. Comput. Sci,. Feb. 9."},{"key":"e_1_2_1_20_1","volume-title":"Proceedings of the 9th European Conference on Object-Oriented Programming (ECOOP'95)","volume":"952","author":"Driesen K.","unstructured":"Driesen , K. , H\u00f6lzle , U. , and Vitek , J . 1995b. Message dispatch on pipelined processors . In Proceedings of the 9th European Conference on Object-Oriented Programming (ECOOP'95) , W. G. Olthoff, Ed. (\u00c5arhus, Denmark). Lecture Notes in Computer Science , vol. 952 . Springer Verlag, New York, 253--282. Driesen, K., H\u00f6lzle, U., and Vitek, J. 1995b. Message dispatch on pipelined processors. In Proceedings of the 9th European Conference on Object-Oriented Programming (ECOOP'95), W. G. Olthoff, Ed. (\u00c5arhus, Denmark). Lecture Notes in Computer Science, vol. 952. Springer Verlag, New York, 253--282."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/271510.271521"},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the 14th European Conference on Object-Oriented Programming (ECOOP'00)","volume":"1850","author":"Eckel N.","unstructured":"Eckel , N. and Gil , J . 2000. Empirical study of object-layout strategies and optimization techniques . In Proceedings of the 14th European Conference on Object-Oriented Programming (ECOOP'00) E. Bertino, Ed. (Sophia Antipolis and Cannes, France). Lecture Notes in Computer Science , vol. 1850 . Springer Verlag, New York, 394--421. Eckel, N. and Gil, J. 2000. Empirical study of object-layout strategies and optimization techniques. In Proceedings of the 14th European Conference on Object-Oriented Programming (ECOOP'00) E. Bertino, Ed. (Sophia Antipolis and Cannes, France). Lecture Notes in Computer Science, vol. 1850. Springer Verlag, New York, 394--421."},{"key":"e_1_2_1_24_1","unstructured":"Ellis M. A. and Stroustrup B. 1994. The Annotated C&plus;&plus; Reference Manual. Addison-Wesley Reading MA.   Ellis M. A. and Stroustrup B. 1994. The Annotated C&plus;&plus; Reference Manual. Addison-Wesley Reading MA."},{"key":"e_1_2_1_25_1","volume-title":"Proceedings of the 4th Annual European Symposium on Algorithms (ESA'96)","volume":"1136","author":"Ferragina P.","unstructured":"Ferragina , P. and Muthukrishnan , S . 1996. Efficient dynamic method-lookup for object oriented languages (extended abstract) . In Proceedings of the 4th Annual European Symposium on Algorithms (ESA'96) (Barcelona, Spain), J. D\u00edaz and M. J. Serna, Eds. Lecture Notes in Computer Science , vol. 1136 . Springer Verlag, New York, 107--120. Ferragina, P. and Muthukrishnan, S. 1996. Efficient dynamic method-lookup for object oriented languages (extended abstract). In Proceedings of the 4th Annual European Symposium on Algorithms (ESA'96) (Barcelona, Spain), J. D\u00edaz and M. J. Serna, Eds. Lecture Notes in Computer Science, vol. 1136. Springer Verlag, New York, 107--120."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/800057.808675"},{"key":"e_1_2_1_27_1","doi-asserted-by":"crossref","unstructured":"Gil J.\n     and \n      Itai A\n  . \n  1998\n  . The complexity of type analysis of object oriented programs. In Proceedings of the 12th European Conference on Object-Oriented Programming (ECOOP'98) E. Jul Ed. (Brussels Belgium) Lecture Notes in Computer Science vol. \n  1445\n  . \n  Springer Verlag New York 601--634.   Gil J. and Itai A. 1998. The complexity of type analysis of object oriented programs. In Proceedings of the 12th European Conference on Object-Oriented Programming (ECOOP'98) E. Jul Ed. (Brussels Belgium) Lecture Notes in Computer Science vol. 1445. Springer Verlag New York 601--634.","DOI":"10.1007\/BFb0054109"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/320384.320408"},{"volume-title":"Smalltalk-80: The Interactive Programming Environment","author":"Goldberg A.","key":"e_1_2_1_29_1","unstructured":"Goldberg , A. 1984. Smalltalk-80: The Interactive Programming Environment . Addison-Wesley , Reading, MA . Goldberg, A. 1984. Smalltalk-80: The Interactive Programming Environment. Addison-Wesley, Reading, MA."},{"key":"e_1_2_1_30_1","volume-title":"Tech. Rep. TR-98-03","author":"Holst W.","year":"1998","unstructured":"Holst , W. , Szafron , D. , Leontiev , Y. , and Pang , C . 1998 . Multi-method dispatch using single-receiver projections. Tech. Rep. TR-98-03 , University of Alberta, Edmonton, Alb ., Canada . Holst, W., Szafron, D., Leontiev, Y., and Pang, C. 1998. Multi-method dispatch using single-receiver projections. Tech. Rep. TR-98-03, University of Alberta, Edmonton, Alb., Canada."},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the 5th European Conference on Object-Oriented Programming (ECOOP'91)","volume":"512","author":"H\u00f6lzle U.","unstructured":"H\u00f6lzle , U. , Chambers , C. , and Ungar , D . 1991. Optimizing dynamically-typed object-oriented languages with polymorphic inline caches . In Proceedings of the 5th European Conference on Object-Oriented Programming (ECOOP'91) , P. America, Ed. (Geneva, Switzerland). Lecture Notes in Computer Science , vol. 512 . Springer Verlag, New York, 21--38. H\u00f6lzle, U., Chambers, C., and Ungar, D. 1991. Optimizing dynamically-typed object-oriented languages with polymorphic inline caches. In Proceedings of the 5th European Conference on Object-Oriented Programming (ECOOP'91), P. America, Ed. (Geneva, Switzerland). Lecture Notes in Computer Science, vol. 512. Springer Verlag, New York, 21--38."},{"volume-title":"ISE EIFFEL The Language Reference","key":"e_1_2_1_32_1","unstructured":"ISE. 1997. ISE EIFFEL The Language Reference . ISE , Santa Barbara, CA . ISE. 1997. ISE EIFFEL The Language Reference. ISE, Santa Barbara, CA."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/91556.91600"},{"volume-title":"Proceedings of the 7th Soda, Giovanni (SODA'96)","author":"Muthukrishnan S.","key":"e_1_2_1_34_1","unstructured":"Muthukrishnan , S. and M\u00fcller , M . 1996. Time and space efficient method-lookup for object-oriented programs . In Proceedings of the 7th Soda, Giovanni (SODA'96) . Society for Industrial and Applied Mathematics, New York\/Philadelphia, 42--51. Muthukrishnan, S. and M\u00fcller, M. 1996. Time and space efficient method-lookup for object-oriented programs. In Proceedings of the 7th Soda, Giovanni (SODA'96). Society for Industrial and Applied Mathematics, New York\/Philadelphia, 42--51."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/351159.351174"},{"key":"e_1_2_1_36_1","volume-title":"Proceedings of the 13th European Conference on Object-Oriented Programming (ECOOP'99)","volume":"1628","author":"Pang C.","unstructured":"Pang , C. , Holst , W. , Leontiev , Y. , and Szafron , D . 1999. Multi-method dispatch using multiple row displacement . In Proceedings of the 13th European Conference on Object-Oriented Programming (ECOOP'99) , R. Guerraoui, Ed. (Lisbon, Portugal). Lecture Notes in Computer Science , vol. 1628 . Springer Verlag, New York, 304--328. Pang, C., Holst, W., Leontiev, Y., and Szafron, D. 1999. Multi-method dispatch using multiple row displacement. In Proceedings of the 13th European Conference on Object-Oriented Programming (ECOOP'99), R. Guerraoui, Ed. (Lisbon, Portugal). Lecture Notes in Computer Science, vol. 1628. Springer Verlag, New York, 304--328."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/141936.141947"},{"volume-title":"The Dylan Reference Manual: The Definitive Guide to the New Object-Oriented Dynamic Language","author":"Shalit A.","key":"e_1_2_1_38_1","unstructured":"Shalit , A. 1997. The Dylan Reference Manual: The Definitive Guide to the New Object-Oriented Dynamic Language . Addison-Wesley , Reading, MA . Shalit, A. 1997. The Dylan Reference Manual: The Definitive Guide to the New Object-Oriented Dynamic Language. Addison-Wesley, Reading, MA."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3828.3835"},{"volume-title":"The Design and Evolution of C&plus;&plus;","author":"Stroustrup B.","key":"e_1_2_1_40_1","unstructured":"Stroustrup , B. 1994. The Design and Evolution of C&plus;&plus; . Addison-Wesley , Reading, MA . Stroustrup, B. 1994. The Design and Evolution of C&plus;&plus;. Addison-Wesley, Reading, MA."},{"key":"e_1_2_1_41_1","volume-title":"The C&plus;&plus","author":"Stroustrup B.","unstructured":"Stroustrup , B. 1997. The C&plus;&plus ; Programming Language, 3 rd Ed. Addison-Wesley , Reading, MA. Stroustrup, B. 1997. The C&plus;&plus; Programming Language, 3rd Ed. Addison-Wesley, Reading, MA.","edition":"3"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(77)90031-X"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01683268"},{"key":"e_1_2_1_45_1","volume-title":"Proceedings of the 8th European Conference on Object-Oriented Programming (ECOOP'94)","volume":"821","author":"Vitek J.","unstructured":"Vitek , J. and Horspool , R. N . 1994. Taming message passing: Efficient method look-up for dynamically typed languages . In Proceedings of the 8th European Conference on Object-Oriented Programming (ECOOP'94) , M. Tokoro and R. Pareschi, Eds. (Bologna, Italy). Lecture Notes in Computer Science , vol. 821 . Springer Verlag, New York, 432--449. Vitek, J. and Horspool, R. N. 1994. Taming message passing: Efficient method look-up for dynamically typed languages. In Proceedings of the 8th European Conference on Object-Oriented Programming (ECOOP'94), M. Tokoro and R. Pareschi, Eds. (Bologna, Italy). Lecture Notes in Computer Science, vol. 821. Springer Verlag, New York, 432--449."},{"key":"e_1_2_1_46_1","doi-asserted-by":"crossref","unstructured":"Vitek J.\n     and \n      Horspool R. N\n  . \n  1996\n  . Compact dispatch tables for dynamically typed object oriented languages. In Proceedings of the 6th International Conference on Compiler Construction (CC'96) T. Gyimothy Ed. (Link\u00f6ping Sweden) Lecture Notes in Computer Science vol. \n  1060\n  . \n  Springer Verlag New York 309--325.   Vitek J. and Horspool R. N. 1996. Compact dispatch tables for dynamically typed object oriented languages. In Proceedings of the 6th International Conference on Compiler Construction (CC'96) T. Gyimothy Ed. (Link\u00f6ping Sweden) Lecture Notes in Computer Science vol. 1060. Springer Verlag New York 309--325.","DOI":"10.1007\/3-540-61053-7_70"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(84)90020-5"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/263698.263728"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/504311.504290"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/583854.582434"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/604131.604143"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1290520.1290525","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1290520.1290525","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T14:52:24Z","timestamp":1750258344000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1290520.1290525"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2007,11]]},"references-count":47,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2007,11]]}},"alternative-id":["10.1145\/1290520.1290525"],"URL":"https:\/\/doi.org\/10.1145\/1290520.1290525","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"type":"print","value":"0164-0925"},{"type":"electronic","value":"1558-4593"}],"subject":[],"published":{"date-parts":[[2007,11]]},"assertion":[{"value":"2007-11-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}