2013-04-29 140 views

回答

7

如果您使用setup.py腳本,您可以設置「extra_compile_args」選項(請參閱https://stackoverflow.com/a/16402557/2355197)。根據您的代碼,您可以看到顯着的差異。例如,在GCC上,-O3啓用選項「-finline-functions」,其中 認爲所有內聯函數。

Davide