性能优化

其他 社区

技能解读

当前原文的自动摘译,尚未人工审校。

使用这个技能的时候

识别 Python 应用程序中的性能瓶颈 减少应用程序延迟和响应时间 优化 CPU 密集型操作 减少内存消耗和内存泄漏 提高数据库查询性能

请勿在以下情况下使用该技能

该任务与 python 性能优化无关 您需要此范围之外的不同域或工具

使用说明

明确目标、限制和所需的投入。应用相关最佳实践并验证结果。提供可操作的步骤和验证。如果需要详细示例,请打开resources/implementation-playbook.md。

资源

resources/implementation-playbook.md 了解详细模式和示例。

局限性

仅当任务明显符合上述范围时才使用此技能。请勿将输出视为特定环境验证、测试或专家评审的替代品。如果缺少所需的输入、权限、安全边界或成功标准,请停下来并要求澄清。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
通用
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
94 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@sickn33 · MIT
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
Python
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# Python Performance Optimization

Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.

## Use this skill when

- Identifying performance bottlenecks in Python applications
- Reducing application latency and response times
- Optimizing CPU-intensive operations
- Reducing memory consumption and memory leaks
- Improving database query performance
- Optimizing I/O operations
- Speeding up data processing pipelines
- Implementing high-performance algorithms
- Profiling production applications

## Do not use this skill when

- The task is unrelated to python performance optimization
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Resources

- `resources/implementation-playbook.md` for detailed patterns and examples.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。