Repository navigation
Commit fead15c
PERF: Reduce Python Row indexing overhead (#822)
### Work Item / Issue Reference
[AB#48366](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/48366)
### Summary
Add a two-line fast path in `Row.__getitem__` for indexes whose exact
type is `int`, returning the stored value directly. Keep the existing
fallback order unchanged for booleans, integer subclasses, slices and
column-name access.
Only `mssql_python/row.py` changes. No public API, native code, tests,
build configuration or CI changes are included.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent d849a09 commit fead15c
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| |||
0 commit comments