Commit 3ec0c94
committed
perf: skip ColDesc namedtuple allocation when no column encryption policy
When column_encryption_policy is None (the common case), the ColDesc
namedtuple list is never accessed by unpack_plain_row(). Skip building
it entirely, passing None to ParseDesc instead.
This avoids N namedtuple allocations per query (where N = number of
columns) on the Cython fast path for non-encrypted workloads.1 parent 20e7ed6 commit 3ec0c94
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments