zinc-dual-index-pattern
CommunityFast, compact dual-view lists for War3Lib.
AuthorCrainax
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Efficiently manage dynamic collections that must be visible in both a global order and per-group views, while keeping storage compact and enabling fast updates in War3Lib.
Core Features & Use Cases
- Dual-view indexing: global and grouped lists maintain synchronized positions for each element.
- O(1) deletion: remove elements by swapping with the last item and shrinking the array.
- Compact storage: contiguous memory layout with no holes, enabling fast iteration for buffs, effects, queues, and timers.
- Use cases: high-frequency create/destroy workloads where quick iteration and predictable memory usage matter.
Quick Start
Implement a dual-index pattern in your War3Lib project by initializing a global list and per-group lists to start managing elements immediately.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: zinc-dual-index-pattern Download link: https://github.com/Crainax/War3Lib/archive/main.zip#zinc-dual-index-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.