【发布时间】:2017-06-14 16:16:11
【问题描述】:
在 Azure Functions 中导入 pandas 会将执行时间减慢到 20 秒以上。
我正在尝试使用 Azure Functions 构建一个 HTTP 触发的微服务,该微服务在 Python 中执行一些数据分析。我编写的代码使用了 Pandas 和 Numpy 库。
我已关注the Azure tutorial to create a Hello World function。该函数能够在 200 毫秒内运行。
This answer helped me 通过 pip 安装 numpy 和 pandas,但只要我在脚本中包含 import pandas 行,执行时间就会超过 20 秒!
我做错了吗?有没有办法加快速度?还是 Azure Functions 仅适用于不太复杂的 Python 库?
【问题讨论】:
标签: python azure azure-functions