avatar

Code Optimizer | 免费 AI 工具

Xiao-Mi Guo
1

对科学计算或数据处理的代码进行性能优化

工作流

应用介绍

输入一段代码后,工作流会尝试调研GPT-3.5优化这段代码,并给出优化方式和优化后的代码。优化方式有3种:rewrite with C++ / GPU acceleration / Parallelization

直接输入代码,不要用引号(```)包起来。比如:

# get sum of a very huge csv file.
def get_result_sum(file_result = "result.csv"):
    sum = 0
    with open(file_result,"r") as f:
        for line in f.readlines():
            for x in line.strip().split(","):
                sum += int(x)
    return sum

模板提示词