# efficient-data-structures > Match data structures to access patterns: Arrays for ordered, indexed access; Sets/Maps for uniqu... Use when optimizing code performance. Performance category skill. - Author: OmniaffixDave - Repository: OmniaffixDave/SessionGuardian - Version: 20260205125233 - Stars: 0 - Forks: 1 - Last Updated: 2026-02-08 - Source: https://github.com/OmniaffixDave/SessionGuardian - Web: https://mule.run/skillshub/@@OmniaffixDave/SessionGuardian~efficient-data-structures:20260205125233 --- --- name: efficient-data-structures description: "Match data structures to access patterns: Arrays for ordered, indexed access; Sets/Maps for uniqu... Use when optimizing code performance. Performance category skill." metadata: category: Performance priority: medium is-built-in: true session-guardian-id: builtin_efficient_data_structures --- # Efficient Data Structures Match data structures to access patterns: Arrays for ordered, indexed access; Sets/Maps for uniqueness and fast lookup; Queues for FIFO processing; Stacks for LIFO. Consider memory layout—arrays are cache-friendly for iteration. For large datasets, consider specialized structures like tries, heaps, or bloom filters. Understand the complexity of operations on your chosen structure.