Towards a software product line of trie-based collections

Author:

Steindorfer Michael J.1,Vinju Jurgen J.1

Affiliation:

1. CWI, Netherlands

Abstract

Collection data structures in standard libraries of programming languages are designed to excel for the average case by carefully balancing memory footprint and runtime performance. These implicit design decisions and hard-coded trade-offs do constrain users from using an optimal variant for a given problem. Although a wide range of specialized collections is available for the Java Virtual Machine (JVM), they introduce yet another dependency and complicate user adoption by requiring specific Application Program Interfaces (APIs) incompatible with the standard library. A product line for collection data structures would relieve library designers from optimizing for the general case. Furthermore, a product line allows evolving the potentially large code base of a collection family efficiently. The challenge is to find a small core framework for collection data structures which covers all variations without exhaustively listing them, while supporting good performance at the same time. We claim that the concept of Array Mapped Tries (AMTs) embodies a high degree of commonality in the sub-domain of immutable collection data structures. AMTs are flexible enough to cover most of the variability, while minimizing code bloat in the generator and the generated code. We implemented a Data Structure Code Generator (DSCG) that emits immutable collections based on an AMT skeleton foundation. The generated data structures outperform competitive hand-optimized implementations, and the generator still allows for customization towards specific workloads.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference34 articles.

1. P. Bagwell. Fast And Space Efficient Trie Searches. Tech. rep. LAMP-REPORT-2000-001. Ecole polytechnique fédérale de Lausanne 2000. P. Bagwell. Fast And Space Efficient Trie Searches. Tech. rep. LAMP-REPORT-2000-001. Ecole polytechnique fédérale de Lausanne 2000.

2. P. Bagwell. Ideal Hash Trees. Tech. rep. LAMPREPORT-2001-001. Ecole polytechnique fédérale de Lausanne 2001. P. Bagwell. Ideal Hash Trees. Tech. rep. LAMPREPORT-2001-001. Ecole polytechnique fédérale de Lausanne 2001.

3. P. Bagwell and T. Rompf. RRB-Trees: Efficient Immutable Vectors. Tech. rep. EPFL-REPORT-169879. P. Bagwell and T. Rompf. RRB-Trees: Efficient Immutable Vectors. Tech. rep. EPFL-REPORT-169879.

4. Ecole polytechnique fédérale de Lausanne 2011. Ecole polytechnique fédérale de Lausanne 2011.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3