Dragos, IulianOdersky, Martin2010-07-232010-07-232010-07-23200910.1145/1565824.1565830https://infoscience.epfl.ch/handle/20.500.14299/51845Compilation of polymorphic code through type erasure gives compact code but performance on primitive types is significantly hurt. Full specialization gives good performance, but at the cost of increased code size and compilation time. Instead we propose a mixed approach, which allows the programmer to decide what code to specialize. Our approach supports separate compilation, allows mixing of specialized and generic code, and gives very good results in practice.boxingspecializationparametric polymorphismobject-oriented programming languagesCompiling generics through user-directed type specializationtext::conference output::conference proceedings::conference paper