[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-685695-en":3,"doc-seo-685695-105":58,"detail-sidebar-cat-0-en-105":122,"doc-similar-685695":168},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30,"preview_page_count":11,"preview_urls":31},685695,1374408768420,"Guten Appetit_Joghurt","https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8",6,"Technology","High Performance Lists in Java - JavaZone 2015 - Motivation: A Real World Example","A performance-focused Java talk by Thomas Mauch covering real-world motivations for choosing list implementations. It contrasts ArrayList and LinkedList for time-ordered event windows, then analyzes tradeoffs for insertion, deletion, positional access, and iteration patterns. The content explains why ArrayList performs well in analysis yet can suffer when adding at the head, highlights memory overhead when boxing primitives, and discusses limitations of minimal APIs and synchronization. Finally, it introduces GapList and a cyclic-buffer approach using locality of reference and modulo-based indexing.","High Performance Lists in Java  \nThomas Mauch JavaZone 2015  \nMotivation: A Real World Example  \nThe Analytical Engine:  \n● maintain a fixed window of  \nevents ordered by time  \n● new events are added at the head and disappear at the end  \n● various analytical functions can be applied to the events in the window  \nThe JDK Collections  \n[https://docs.oracle.com/javase/tutorial/collections/](https://docs.oracle.com/javase/tutorial/collections/)[ ](https://docs.oracle.com/javase/tutorial/collections/)[implementations/list.html](implementations/list.html)  \nMost of the time, you'll probably use ArrayList, which offers constant-time positional access and is just plain fast...  \nIf you frequently add elements to the beginning of the List or iterate over the List to delete elements from its interior, you should consider using LinkedList…  \nBut you pay a big price in performance, positional access requires linear-time in a LinkedList...  \nAnalyis  \n● ArrayList would excel in the analysis part, but behave poorly in adding the events  \n● LinkedList: vice versa  \nWhat will the good programmer do?  \n● Probably choose ArrayList with  \na bad feeling  \nArrayList: Not For Primitive Types  \nWe need to store just int values, but ArrayList\u003CInteger> stores an Integer object for each value  \nHow much memory is needed/wasted?  \n● 4 (!) times more memory needed in a 32 bit environment  \n● 7 (!!) times more memory needed in a 64 bit environment  \nArrayList: Minimalistic API  \n● How many times did I have to write list.get(list.size()-1) instead of getLast?  \n● ArrayList only implements List. . .  \n● LinkedList implements List and Deque. . .  \n● And ArrayDeque only implements Deque. . .  \n● Collections.synchronizedList() is not enough  \nArrayList: Implementation  \n● ArrayList stores the elements contiguously in an array  \n● If there is not enough space, the array is extended  \n● The array does not shrink automatically  \nArrayList: Operations  \n● Animations  \nGapList: Goals  \nImprove storage layout used by ArrayList to  \n● Make operations at the head of the list as fast as at the tail  \n● Exploit locality of reference to speed up operations happening near to each other  \nLocality of reference?  \n● Near storage locations are frequently accessed at the  \nsame time  \nGapList: Cyclic Buffer  \n● Goal: Make operations at the head of the list as fast as atthe tail  \n● Solution: Use array as cyclic buffer  \n● Physical array index is created from the logical one using a modulo operation","cbCaiaLr1BoYWN5O","https://ap.wps.com/l/cbCaiaLr1BoYWN5O","pdf",1093587,7,1,56,"English","en",105,"# Motivation: A Real World Example\n# The Analytical Engine\n## The JDK Collections\n# Analysis: Choosing ArrayList vs LinkedList\n# ArrayList: Not For Primitive Types\n# ArrayList: Minimalistic API\n# ArrayList: Implementation and Operations\n# GapList: Goals and Cyclic Buffer","[{\"question\":\"Why is choosing ArrayList vs LinkedList crucial for the analytical engine use case?\",\"answer\":\"ArrayList excels when analysis requires fast positional access, while LinkedList can be better for workloads that frequently add elements at the head or delete from the interior. The decision depends on which operations dominate.\"},{\"question\":\"What performance and memory issues arise when using ArrayList for primitive int values?\",\"answer\":\"ArrayList\\u003cInteger\\u003e stores boxed Integer objects, which increases memory usage—about 4x more on a 32-bit environment and about 7x more on a 64-bit environment.\"},{\"question\":\"How does GapList aim to improve list performance compared with standard ArrayList and LinkedList?\",\"answer\":\"GapList targets fast operations at both the head and tail by improving storage layout, exploiting locality of reference, and using a cyclic buffer with modulo-based mapping from logical to physical indices.\"}]","High Performance Lists in Java - JavaZone 2015 - Motivation: A Real World Example | PDF",1794016775,141,[32,36,41,45,50,54],{"page_no":21,"url":33,"width":34,"height":35},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/23d4a1bd5b1f30881c7b7dae2e3e3fa2.webp",983,552,{"page_no":37,"url":38,"width":39,"height":40},2,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0d311890784cb7d2e2b062dfa6049ba4.webp",982,551,{"page_no":42,"url":43,"width":44,"height":40},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/993a00e44ded10f08087a185c1ec0b85.webp",981,{"page_no":46,"url":47,"width":48,"height":49},4,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/040604a47e60ded547f991a451019bda.webp",980,550,{"page_no":51,"url":52,"width":53,"height":49},5,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0caba67ef5bae25199fa157da5f61506.webp",979,{"page_no":11,"url":55,"width":56,"height":57},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d72cc91698d70b70834a2a1f342a4413.webp",978,549,{"code":4,"msg":59,"data":60},"ok",{"site_id":25,"language":24,"slug":61,"title":13,"keywords":62,"description":14,"schema_data":63,"social_meta":117,"head_meta":119,"extra_data":121,"updated_unix":29},"high-performance-lists-in-java-javazone-2015-motivation-a-real-world-example","",{"@graph":64,"@context":116},[65,79,99],{"@type":66,"itemListElement":67},"BreadcrumbList",[68,72,75,77],{"item":69,"name":70,"@type":71,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":73,"name":74,"@type":71,"position":37},"https://docshare.wps.com/document/","Document",{"item":76,"name":12,"@type":71,"position":42},"https://docshare.wps.com/document/technology/",{"item":78,"name":13,"@type":71,"position":46},"https://docshare.wps.com/document/high-performance-lists-in-java-javazone-2015-motivation-a-real-world-example/685695/",{"url":78,"name":13,"@type":80,"image":81,"author":86,"headline":13,"publisher":88,"fileFormat":91,"inLanguage":24,"description":14,"dateModified":92,"datePublished":93,"encodingFormat":91,"isAccessibleForFree":94,"interactionStatistic":95},"DigitalDocument",{"url":82,"@type":83,"width":84,"height":85},"https://docshare.wps.com/thumbnails/high-performance-lists-in-java-javazone-2015-motivation-a-real-world-example/685695.png","ImageObject",300,407,{"name":9,"@type":87},"Person",{"url":69,"name":89,"@type":90},"DocShare","Organization","application/pdf","2026-11-12","2026-11-07",true,{"@type":96,"interactionType":97,"userInteractionCount":20},"InteractionCounter",{"@type":98},"ViewAction",{"@type":100,"mainEntity":101},"FAQPage",[102,108,112],{"name":103,"@type":104,"acceptedAnswer":105},"Why is choosing ArrayList vs LinkedList crucial for the analytical engine use case?","Question",{"text":106,"@type":107},"ArrayList excels when analysis requires fast positional access, while LinkedList can be better for workloads that frequently add elements at the head or delete from the interior. The decision depends on which operations dominate.","Answer",{"name":109,"@type":104,"acceptedAnswer":110},"What performance and memory issues arise when using ArrayList for primitive int values?",{"text":111,"@type":107},"ArrayList\u003CInteger> stores boxed Integer objects, which increases memory usage—about 4x more on a 32-bit environment and about 7x more on a 64-bit environment.",{"name":113,"@type":104,"acceptedAnswer":114},"How does GapList aim to improve list performance compared with standard ArrayList and LinkedList?",{"text":115,"@type":107},"GapList targets fast operations at both the head and tail by improving storage layout, exploiting locality of reference, and using a cyclic buffer with modulo-based mapping from logical to physical indices.","https://schema.org",{"og:url":78,"og:type":118,"og:title":13,"og:site_name":89,"og:description":14},"article",{"robots":120,"canonical":78},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":123},[124,128,132,136,140,143,147,152,157,160,164],{"id":21,"doc_module":4,"doc_module_name":74,"category_name":125,"show_sort_weight":126,"slug":127},"Story & Novel",90,"story-novel",{"id":37,"doc_module":4,"doc_module_name":74,"category_name":129,"show_sort_weight":130,"slug":131},"Literature",80,"literature",{"id":46,"doc_module":4,"doc_module_name":74,"category_name":133,"show_sort_weight":134,"slug":135},"Exam",70,"exam",{"id":51,"doc_module":4,"doc_module_name":74,"category_name":137,"show_sort_weight":138,"slug":139},"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":74,"category_name":12,"show_sort_weight":141,"slug":142},50,"technology",{"id":20,"doc_module":4,"doc_module_name":74,"category_name":144,"show_sort_weight":145,"slug":146},"Healthcare",40,"healthcare",{"id":148,"doc_module":4,"doc_module_name":74,"category_name":149,"show_sort_weight":150,"slug":151},8,"Research & Report",30,"research-report",{"id":153,"doc_module":4,"doc_module_name":74,"category_name":154,"show_sort_weight":155,"slug":156},9,"Religion & Spirituality",20,"religion-spirituality",{"id":155,"doc_module":4,"doc_module_name":74,"category_name":158,"show_sort_weight":155,"slug":159},"World Cup","world-cup",{"id":161,"doc_module":4,"doc_module_name":74,"category_name":162,"show_sort_weight":161,"slug":163},10,"Lifestyle","lifestyle",{"id":165,"doc_module":4,"doc_module_name":74,"category_name":166,"show_sort_weight":51,"slug":167},19,"General","general",{"list":169,"token":62},[170,176,182,189,196,203,210,217,224,231],{"doc_id":171,"doc_title":172,"file_type":18,"home_preview_img_url":173,"slug":174,"view_count":46,"category_name":12,"create_tm":175},685692,"ArrayList vs LinkedList - For Introduction to Java Programming - Performance Comparison","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000179353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=%2BDDtgr%2Fyk6oqAGznd35qiECx2RA%3D","arraylist-vs-linkedlist-for-introduction-to-java-programming-performance-comparison",1794016770,{"doc_id":177,"doc_title":178,"file_type":18,"home_preview_img_url":179,"slug":180,"view_count":11,"category_name":12,"create_tm":181},697916,"Java Collections - List Set Map","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010130865/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=iaM6znBHvYOueTFqnqqEBl7vh40%3D","java-collections-list-set-map",1794445817,{"doc_id":183,"doc_title":184,"file_type":18,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":12,"create_tm":188},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=17egVcJsgu74fD8Ut09Rma%2FauCg%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":190,"doc_title":191,"file_type":18,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":12,"create_tm":195},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=%2BHag3LLU9Bhzuk6RGFHL5j0%2FyBc%3D","xnx-universal-transmitter-installation-manual",855,1776135954,{"doc_id":197,"doc_title":198,"file_type":18,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":12,"create_tm":202},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=2usywsySlg9Ch%2FW8wBKZIBxgxms%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":204,"doc_title":205,"file_type":18,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":12,"create_tm":209},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=xKq6mP9cLzR5Yik%2B%2FuOfLe5acZg%3D","free-fire-proxy-server",565,1776135932,{"doc_id":211,"doc_title":212,"file_type":18,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":12,"create_tm":216},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=9oJ%2FCTxdZ5IZR7kG4iSQY1xL5OE%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":218,"doc_title":219,"file_type":18,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":12,"create_tm":223},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=MAzbCZwdm8VPQYCSvKjIP4cc%2FOw%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":225,"doc_title":226,"file_type":18,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":12,"create_tm":230},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=bzrCyKq8DMTqCUkQzqupfRWtlwU%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169,{"doc_id":232,"doc_title":233,"file_type":18,"home_preview_img_url":234,"slug":235,"view_count":236,"category_name":12,"create_tm":237},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111819&Signature=tVpiODofBff1Eaf2F1dyYjkTsAQ%3D","ew-101-a-first-course-in-electronic-warfare",438,1776558348]