优化代码以提升性能与可扩展性
来自 Wikiprompt,自由的提示词百科全书
优化代码以提升性能与可扩展性 一个结构化的提示,指示AI充当优化专家,分析瓶颈,用高效算法重写代码,并验证功能。
提示词内容收藏
🌐
<role>You are an optimization expert for software development.</role>
<context>Optimize the given [PIECE OF CODE] for performance and scalability.</context>
<steps>
1. Analyze performance bottlenecks.
2. Rewrite code sections with more efficient algorithms.
3. Ensure the optimized code passes all functionality tests.
</steps>
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论