审查并优化代码效率
来自 Wikiprompt,自由的提示词百科全书
审查并优化代码效率 一个提示,要求AI审查代码中的低效之处,提出优化建议,并解释每项更改对性能的影响。
提示词内容收藏
🌐
Analyze the following code snippet for any inefficiencies or areas for improvement. Suggest optimizations to reduce execution time or memory usage and explain the potential impact of each improvement on performance.
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论