Add Chinese (Simplified) translations for all documentation, organized under a dedicated zh/ directory that mirrors the English folder structure. Co-authored-by: tanqingkuang <tanqingkuang@users.noreply.github.com> Translations originally contributed by @tanqingkuang in #45. Restructured from *-CN.md suffix pattern into zh/ directory to prevent the EPUB builder (scripts/build_epub.py collect_folder_files) from picking up Chinese files via glob("*.md") inside module folders.
20 lines
571 B
Markdown
20 lines
571 B
Markdown
---
|
||
description: 分析代码中的性能问题并提出优化建议
|
||
---
|
||
|
||
# 代码优化
|
||
|
||
按优先级审查提供的代码,重点关注以下问题:
|
||
|
||
1. **性能瓶颈** - 识别 O(n²) 操作和低效循环
|
||
2. **内存泄漏** - 查找未释放的资源、循环引用
|
||
3. **算法改进** - 建议更好的算法或数据结构
|
||
4. **缓存机会** - 识别重复计算
|
||
5. **并发问题** - 查找竞态条件或线程问题
|
||
|
||
请按以下格式输出:
|
||
- 问题严重性(Critical/High/Medium/Low)
|
||
- 代码位置
|
||
- 解释
|
||
- 推荐修复方案,附代码示例
|