返回顶部
e

elixir-performance-reviewElixir性能审查

Reviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code or investigating performance issues.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
114
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

elixir-performance-review

Elixir 性能审查

快速参考

问题类型参考文档
邮箱溢出、阻塞调用references/genserver-bottlenecks.md
何时使用ETS、读写并发
references/ets-patterns.md | | 二进制数据处理、大消息 | references/memory.md | | 任务模式、流量控制 | references/concurrency.md |

审查清单

GenServer

  • - [ ] 不是所有请求的单进程瓶颈
  • [ ] handle_call/cast中无阻塞操作
  • [ ] 配置了适当的超时时间
  • [ ] 考虑对读密集型状态使用ETS

内存

  • - [ ] 大二进制数据不在进程间复制
  • [ ] 大数据转换使用流处理
  • [ ] 无无限制的数据累积

并发

  • - [ ] 动态任务使用Task.Supervisor(而非原始Task.async)
  • [ ] 无无限制的进程创建
  • [ ] 消息生产者具备适当的背压机制

数据库

  • - [ ] 预加载以避免N+1查询
  • [ ] 大结果集使用分页
  • [ ] 频繁查询使用索引

有效模式(请勿标记)

  • - 低吞吐量的单GenServer - 并非所有状态都需要水平扩展
  • 关键路径的同步调用 - 一致性可能要求如此
  • 不使用ETS的内存状态 - 对于小状态,ETS有额外开销
  • 小集合使用Enum而非Stream - Stream的开销不值得

上下文敏感规则

问题仅在以下情况标记
GenServer瓶颈处理超过1000请求/秒 或 回调中存在阻塞I/O
使用流处理
处理超过1万个项目 或 读取大文件 | | 使用ETS | 读写比例超过10:1 且 存在并发访问 |

提交发现结果前

在报告任何问题前,请加载并遵循审查验证协议

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 elixir-performance-review-1776115890 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 elixir-performance-review-1776115890 技能

通过命令行安装

skillhub install elixir-performance-review-1776115890

下载

⬇ 下载 elixir-performance-review v1.2.0(免费)

文件大小: 6.85 KB | 发布时间: 2026-4-14 14:38

v1.2.0 最新 2026-4-14 14:38
elixir-performance-review v1.2.0

- Added quick-reference table linking common performance issues to documentation.
- Expanded and clarified the review checklist for GenServer, memory usage, concurrency, and database patterns.
- Documented valid code patterns that should not be flagged.
- Introduced context-sensitive review rules to guide when to flag issues.
- Added a step to verify findings using the review-verification-protocol before submission.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部