[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-697922-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-697922-en":130,"doc-similar-697922":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","classification-based-static-collection-selection-for-java-effectiveness-and-adaptability","Classification-based Static Collection Selection for Java: Effectiveness and Adaptability","","Careful selection of the right Java collection data structure can materially improve program performance, yet estimating the benefit of a specific choice is difficult. Existing recommendation tools often decide dynamically, forcing trade-offs between algorithm sophistication and runtime overhead. This work ports the Brainy static collection selection approach from C++ to Java and evaluates it on five DaCapo benchmarks, comparing against a brute-force ground truth for optimal performance.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/classification-based-static-collection-selection-for-java-effectiveness-and-adaptability/697922/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/classification-based-static-collection-selection-for-java-effectiveness-and-adaptability/697922.png","ImageObject",300,407,{"name":42,"@type":43},"iuabcfuw","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is selecting the right Java collection data structure important?","Question",{"text":63,"@type":64},"Because collections with the same abstract data type can have noticeably different performance characteristics, and the right choice can significantly improve runtime.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What limitation motivates static collection selection tools?",{"text":68,"@type":64},"Performance impact is hard to estimate, and many existing Java tools choose collections dynamically, which introduces runtime overhead and forces trade-offs in model sophistication.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the paper evaluate effectiveness of the Java port?",{"text":72,"@type":64},"It ports Brainy from C++ to Java and evaluates on five DaCapo benchmarks, comparing results to both the original program and a brute-force ground truth for optimal performance.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},697922,1794445833,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},3985747874027,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Classification-based Static Collection Selection for Java: Effectiveness and Adaptability  \nNoric Couderc Lund University  \nSweden [noric.couderc@cs.lth.se](noric.couderc@cs.lth.se)  \nChristoph Reichenbach Lund University  \nSweden [christoph.reichenbach@cs.lth.se](christoph.reichenbach@cs.lth.se)  \nEmma Söderberg Lund University  \nSweden [emma.soderberg@cs.lth.se](emma.soderberg@cs.lth.se)  \nABSTRACT  \nCarefully selecting the right collection datastructure can significantly improve the performance of a Java program. Unfortunately, the performance impact of a certain collection selection can be hard to estimate. To assist developers there are tools that recommend collections to use based on static and/or dynamic information about a program. The majority of existing collection selection tools for Java (e.g., CoCo, CollectionSwitch) pick their selections dynamically, which means that they must trade off sophistication in their selection algorithm against its run time overhead. For static collection selection, the Brainy tool has demonstrated that complex, machine-dependent models can produce substantial performance improvements, albeit only for C++ so far.  \nIn this paper, we port Brainy from C++ to Java, and evaluate its effectiveness for 5 benchmarks from the DaCapo benchmark suite. We compare it against the original program, but also to a variant of a brute-force approach to collection selection, which serves as our ground truth for optimal performance. Our results show that in four benchmarks out of five, our ground truth and the original program are similar. In one case, the ground truth shows an optimization yielding 20% speedup was available, but our port did not find this substantial optimization. We find that the port is more efficient but less effective than the ground truth, can easily adapt to new hardware architectures, and incorporate new datastructures with at most a few hours of human effort. We detail challenges that we encountered porting the Brainy approach to Java, and list a number of insights and directions for future research.  \nACM Reference Format:  \nNoric Couderc, Christoph Reichenbach, and Emma Söderberg. 2023. Classificationbased Static Collection Selection for Java: Effectiveness and Adaptability.  \nIn Proceedings of The 24th International Conference on Evaluation and Assessment in Software Engineering (EASE 2023). ACM, New York, NY, USA, 11 pages. [https://doi.org/10.1145/nnnnnnn.nnnnnnn](https://doi.org/10.1145/nnnnnnn.nnnnnnn)  \n1 INTRODUCTION  \nMost recent programming languages include a collection framework as part of their standard library (or runtime) . For example,  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions [from permissions@acm.org](from permissions@acm.org).  \nEASE 2023, 14–16 June, 2023, Oulu, Finland © 2023 Association for Computing Machinery.  \nACM ISBN 978-x-xxxx-xxxx-x/YY/MM…$15.00 [https://doi.org/10.1145/nnnnnnn.nnnnnnn](https://doi.org/10.1145/nnnnnnn.nnnnnnn)  \nJava, C\\#, Python and Ruby all provide a collection framework. Collections typically implement an Abstract Data Type (ADT), which defines operations that the collection supports, and their semantics. In Java, the List, Map, and Set interfaces describe the associated ADTs, which are implemented in several classes. Collections that implement the same ADT are largely interchangeable.  \nHowever, even when collections are semantically interchangeable, their respective performance characteristics may vary. Liu and Rus [13] found tha","cbCaieUSalBIQG0U","https://ap.wps.com/l/cbCaieUSalBIQG0U","pdf",428109,11,"English","# Abstract\n# Introduction\n## Collection frameworks and interchangeability\n## Performance depends on complex factors\n## Static vs dynamic collection selection approaches","[{\"question\":\"Why is selecting the right Java collection data structure important?\",\"answer\":\"Because collections with the same abstract data type can have noticeably different performance characteristics, and the right choice can significantly improve runtime.\"},{\"question\":\"What limitation motivates static collection selection tools?\",\"answer\":\"Performance impact is hard to estimate, and many existing Java tools choose collections dynamically, which introduces runtime overhead and forces trade-offs in model sophistication.\"},{\"question\":\"How does the paper evaluate effectiveness of the Java port?\",\"answer\":\"It ports Brainy from C++ to Java and evaluates on five DaCapo benchmarks, comparing results to both the original program and a brute-force ground truth for optimal performance.\"}]","Classification-based Static Collection Selection for Java: Effectiveness and Adaptability | PDF",28,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/9cc24fee96545bd45e8dfde5a13d257f.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c8e045b2f55ea47511139b6226c520ed.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c88f2d82737f3edb7782b86fdffc9313.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/5a65139128978841f222021839ffa911.webp",980,1268,{"list":163,"token":11},[164,171,178,184,190,197,204,210,216,223],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},127872,"Combined Static Analysis and Machine Learning Prediction for Application Debloating","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839590755/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=GungwlAc5BlojBpzBNVpk%2BdxLrs%3D","combined-static-analysis-and-machine-learning-prediction-for-application-debloating",17,1785942457,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},122857,"Privacy-Preserving Machine Learning on Apache Spark - Soteria Hybrid Trusted Execution Environments Scheme","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836800762/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=M%2F9sq1zQkZ3ePX5c3IreFC%2F5iTU%3D","privacy-preserving-machine-learning-on-apache-spark-soteria-hybrid-trusted-execution-environments-scheme",18,1785813353,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":127,"category_name":29,"create_tm":183},119534,"Enhancing Row-Sampling-Based Rowhammer Defense Methods with Machine Learning Approach","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835135842/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Ehe%2BYwpUfp%2FnT1BrspgxWD6Z1ZM%3D","enhancing-row-sampling-based-rowhammer-defense-methods-with-machine-learning-approach",1785724825,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":26,"category_name":29,"create_tm":189},721613,"JavaScript Dead Code Identification, Elimination, and Empirical Assessment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230025022660/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=as1qfI4kNuoBgYEb44j3JnU%2Br3I%3D","javascript-dead-code-identification-elimination-and-empirical-assessment",1795060940,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},31937,"Enhancing the Kubernetes Platform with a Load-Aware Orchestration Strategy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229754729832/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=4z7i6Agnp1Zq%2BydHB8WuXL6fQ88%3D","enhancing-the-kubernetes-platform-with-a-load-aware-orchestration-strategy",51,1780520435,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},290785,"Machine learning-based PortScan attacks detection using OneR classifier - Detection Accuracy Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903741618/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=BK3FO99frKKFFlpWnmCerUR9mlY%3D","machine-learning-based-portscan-attacks-detection-using-oner-classifier-detection-accuracy-study",14,1789642565,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":33,"category_name":29,"create_tm":209},698154,"Cost Effective Storage using Extent Based Dynamic Tiering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010213080/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=gGmrb%2BNdDCa7%2F9PvXaZy61zC8to%3D","cost-effective-storage-using-extent-based-dynamic-tiering",1794448926,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":111,"category_name":29,"create_tm":215},693096,"Performance best practices using Java AWS lambda - Cold start optimization study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085188/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=U5bkH%2FQu00bvNNFBDmen5AN2t54%3D","performance-best-practices-using-java-aws-lambda-cold-start-optimization-study",1794249674,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":29,"create_tm":222},85175,"Adaptive Model Compression (AMC) Saliency-Driven Resource Allocation for Ultra-Low-Power Transformer Inference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809293638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=ztUmtKJZEZelxJSycHwUfG2Zwpo%3D","adaptive-model-compression-amc-saliency-driven-resource-allocation-for-ultra-low-power-transformer-inference",22,1784201549,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":106,"category_name":29,"create_tm":228},655624,"sys-sage: A Unified Representation of Dynamic Topologies - Attributes on HPC Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=HH15V66s4Eq7sLjdDqS6DvImUec%3D","sys-sage-a-unified-representation-of-dynamic-topologies-attributes-on-hpc-systems",1792962905]