]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Declare KEY_OBJECTS_ONLY as cdef variable
authorMatus Valo <Matus.Valo@solarturbines.com>
Sun, 26 Feb 2023 20:10:23 +0000 (15:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Feb 2023 03:24:09 +0000 (22:24 -0500)
commitc1d94b673be5e0121e657b0b368f186197072574
tree9c7810754a32c5d81ff2639ab8c03cce8a662610
parent16d3dad4490fc4915096b7963f21e6b591b15ba7
Declare KEY_OBJECTS_ONLY as cdef variable

A small optimization to the Cython implementation of :class:`.ResultProxy`
using a cdef for a particular int value to avoid Python overhead. Pull
request courtesy Matus Valo.

Fixes: #9343
Closes: #9344
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9344
Pull-request-sha: fc6a97debe45497ef502f3861611b021a5885b63

Change-Id: I231d4fb292decfe9bccdf54f2851ce6f69d5d6c7
doc/build/changelog/unreleased_20/9343.rst [new file with mode: 0644]
lib/sqlalchemy/cyextension/resultproxy.pyx