Book chapter
OA Policy
English

Efficient Type Inclusion Tests

Published inTsichritzis, Dionysios (Ed.), Electronic commerce objects = Objets de commerce électronique, p. 47-76
PublisherGenève : Centre universitaire d'informatique
Publication date1998-07
Abstract

A type inclusion test determines whether one type is a subtype of another. Efficient type testing techniques exist for single subtyping, but not for languages with multiple subtyping. To date, the only fast constant-time technique relies on a binary matrix encoding of the subtype relation with quadratic space requirements. In this paper, we present three new encodings of the subtype relation, the packed encoding, the bit-packed encoding and the compact encoding. These encodings have different characteristics. The bit-packed encoding delivers the best compression rates: on average 85% for real life programs. The packed encoding performs type inclusion tests in only 4 machine instructions. We present a fast algorithm for computing these encoding which runs in less than 13 milliseconds for PE and BPE, and 23 milliseconds for CE on an Alpha processor. Finally, we compare our results with other constant-time type inclusion tests on a suite of 11 large benchmark hierarchies.

Citation (ISO format)
VITEK, Jan, HORSPOOL, R. Nigel, KRALL, Andréas. Efficient Type Inclusion Tests. In: Electronic commerce objects = Objets de commerce électronique. Tsichritzis, Dionysios (Ed.). Genève : Centre universitaire d’informatique, 1998. p. 47–76.
Main files (1)
Book chapter (Published version)
Identifiers
  • PID : unige:155934
143views
269downloads

Technical informations

Creation29/10/2021 09:31:00
First validation29/10/2021 09:31:00
Update16/03/2023 01:41:23
Status update16/03/2023 01:41:22
Last indexation31/10/2024 23:36:12
All rights reserved by Archive ouverte UNIGE and the University of GenevaunigeBlack