Code Refactor Suggestions
代码重构建议
Suggest ways to refactor inefficient or clunky code for better performance or clarity, and explain pros and cons.
建议重构低效或臃肿代码的方法以提升性能或清晰度,并说明利弊。
Prompt
Here's some inefficient or clunky code: [paste code]. Suggest ways to refactor it for better performance or clarity. Also explain the pros and cons of your approach.