Skip to content

Commit 24ecbff

Browse files
committed
Enable computed gotos
These do not appear to be on by default and provide a consistent speed-up
1 parent aa430e2 commit 24ecbff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,9 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
424424
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_12}" && -n "${BOLT_CAPABLE}" ]]; then
425425
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-bolt"
426426
fi
427+
428+
# Enable computed-gotos
429+
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-computed-gotos"
427430
fi
428431

429432
if [ -n "${CPYTHON_LTO}" ]; then

0 commit comments

Comments
 (0)