You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(improvement)Optimize column_encryption_policy checks in Cython's unpack_row() function
Very similar to the native Python code, separate the two cases, if column encryption (CE) policy
is not enabled, the code is substantially simplified. If it is, it's slightly more elaborate.
Decided to have two loops in two functions, one for each case, for performance reasons, even if readability-wise it's
not as great. AI agreed with me:
Recommendation: Keep it as is. In high-performance Cython code like this, duplicating a small block of code
Fixes: #639
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
0 commit comments