microwind/ai-skills/data-oriented-programming
Claude Code and agent skill by microwind/ai-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
以数据布局和访问模式为核心的编程范式,优化缓存利用率和内存访问性能。
Install
npx vskill@latest install microwind/ai-skills/data-oriented-programmingSKILL.md
面向数据编程 (Data-Oriented Programming/Design)
概述
面向数据编程(DOP/DOD)以数据的布局和访问模式为核心进行设计,优化 CPU 缓存命中率和内存带宽。
核心思想:
- 数据布局决定性能
- 按访问模式组织数据,而非按对象组织
- AoS (Array of Structs) → SoA (Struct of Arrays)
- 数据和行为分离
AoS vs SoA
游戏开发中的 ECS 模式
应用场景
| 场景 | 原因 | |
|---|---|---|
| 游戏引擎 | 大量实体需要高频更新 | |
| 物理模拟 | 密集数值计算 | |
| 数据处理 | 列式存储优化查询 | |
| 嵌入式系统 | 内存和性能受限 | |
| 高频交易 | 每微秒都重要 |
优缺点
✅ 优点
- 高性能 — 缓存友好,向量化优化
- 可预测 — 性能特征容易分析
- 并行友好 — 数据独立,易于 SIMD
❌ 缺点
- 可读性差 — 数据和行为分离
- 抽象性低 — 不如 OOP 直观
- 适用面窄 — 主要用于性能关键场景
与其他范式的关系
总结
核心:按数据访问模式组织数据,优化缓存命中率。
适用:游戏引擎、物理模拟、高性能计算等性能关键场景。
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprogramming-paradigm/data-oriented-programming/SKILL.md
Popularity
- Repository stars
- 60
- Repository forks
- 15
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microwind/ai-skills/data-oriented-programming)