This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | vstinner |
|---|---|
| Recipients | Aaron Hall, benjamin.peterson, thatiparthy, vstinner |
| Date | 2018年10月25日.09:11:10 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1540458670.32.0.788709270274.issue35059@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
On Windows, a Debug build doesn't inline Py_INCREF/DECREF even if it uses __forceinline. I looked at the Py_IncRef() and Py_DecRef() assembly in Visual Studio using a breakpoint. Using /Ob1, Py_INCREF/DECREF are inlined as expected. I set this option in the pythoncore project. Do you think that I should modify the 38 other projects of the pcbuild solution to enable /Ob1 in debug build? Documentations. Inline Functions (C++): https://docs.microsoft.com/en-us/cpp/cpp/inline-functions-cpp?view=vs-2017 -Od: disable optimization ("d" stands for Debug) https://msdn.microsoft.com/en-us/library/aafb762y.aspx /Ob (Inline Function Expansion): https://msdn.microsoft.com/en-us/library/47238hez.aspx |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018年10月25日 09:11:10 | vstinner | set | recipients: + vstinner, benjamin.peterson, thatiparthy, Aaron Hall |
| 2018年10月25日 09:11:10 | vstinner | set | messageid: <1540458670.32.0.788709270274.issue35059@psf.upfronthosting.co.za> |
| 2018年10月25日 09:11:10 | vstinner | link | issue35059 messages |
| 2018年10月25日 09:11:10 | vstinner | create | |