How does one overwrite the default compile flags for Cython when building with distutils?
我的问题与此类似,但回答涉及手动运行cython步骤-给定进度从0.12到01.9 -我是否可以简单地从-O切换到-O3?
此外,用户是否看到此开关在速度上存在显着差异?
我在一台windows机器上。
发布于 2013-05-07 00:14:21
如果您使用setup.py脚本,则可以设置"extra_compile_args“选项(请参阅https://stackoverflow.com/a/16402557/2355197)。根据您的代码,您可以看到显著的差异。例如,在GCC上,-O3启用了"-finline- functions“选项,该选项考虑了内联的所有函数。
戴维德
https://stackoverflow.com/questions/16285011
复制相似问题