[Python-checkins] r46297 - in python/trunk: Include/pyport.h Python/ceval.c

Neal Norwitz nnorwitz at gmail.com
Sat May 27 03:33:47 CEST 2006


On 5/26/06, fredrik.lundh <python-checkins at python.org> wrote:
> Author: fredrik.lundh
> Date: Fri May 26 13:54:04 2006
> New Revision: 46297
>
> Modified: python/trunk/Include/pyport.h
> ==============================================================================
> --- python/trunk/Include/pyport.h       (original)
> +++ python/trunk/Include/pyport.h       Fri May 26 13:54:04 2006
> @@ -149,6 +153,10 @@
>  #undef USE_INLINE /* XXX - set via configure? */
>
>  #if defined(_MSC_VER)
> +#if defined(PY_LOCAL_AGGRESSIVE)
> +/* enable more aggressive optimization for visual studio */
> +#pragma optimize("agtw", on)
> +#endif
>  /* ignore warnings if the compiler decides not to inline a function */
>  #pragma warning(disable: 4710)
>  /* fastest possible local call under MSVC */
>
> Modified: python/trunk/Python/ceval.c
> ==============================================================================
> --- python/trunk/Python/ceval.c (original)
> +++ python/trunk/Python/ceval.c Fri May 26 13:54:04 2006
> @@ -6,6 +6,9 @@
>     XXX document it!
>     */
>
> +/* enable more aggressive local inlining (platform dependent) */
> +#define PY_LOCAL_AGGRESSIVE
> +
>  #include "Python.h"
>
>  #include "code.h"
> @@ -16,6 +19,11 @@
>
>  #include <ctype.h>
>
> +#if defined(_MSC_VER)
> +/* enable more aggressive optimization for visual studio */
> +#pragma optimize("agtw", on)
> +#endif
> +
>  #ifndef WITH_TSC
>
>  #define READ_TIMESTAMP(var)

Since the pragma was aded in pyport.h, is it also necessary here in ceval.c?

n


More information about the Python-checkins mailing list