[New-bugs-announce] [issue43166] Unused letters in Windows-specific pragma optimize

Guido van Rossum report at bugs.python.org
Mon Feb 8 14:48:37 EST 2021


New submission from Guido van Rossum <guido at python.org>:

A coworker happened to look at our use of #pragma optimize() for Windows (VS 2017) and noticed:

unless there’s something I’m missing, the ‘a’ and ‘w’ portions of the string being passed to the optimize pragma are not doing anything; I’m pretty sure they’ve been useless for 10+ years. The ‘g’ means turn on global optimizations and the ‘t’ means optimize for “time” (i.e. speed). See the documentation at https://docs.microsoft.com/en-us/cpp/preprocessor/optimize?view=msvc-160

----------
messages: 386646
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: Unused letters in Windows-specific pragma optimize
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43166>
_______________________________________


More information about the New-bugs-announce mailing list