讨论

优化代码以提高性能与可扩展性

来自 Wikiprompt,自由的提示词百科全书

Alex Prompter

2025年1月8日

优化代码以提高性能与可扩展性 一个结构化的提示,指示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 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| code-optimization| performance

讨论