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
{{ message }}
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: arraymap.c
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -179,24 +179,25 @@ at_to_kat(int array_t, PyArrayObject* a) {
179
179
}
180
180
181
181
182
+
// To determine when we can use direct array lookups, this function return 1 if we match, 0 if we do not match. Given a keys array type and the kind of lookup key, return true only for the largest KAT types.s
// if key is an np array of the same kind as this FAMs keys, we can do optimized lookups; otherwise, we have to go through scalar to do full branching and coercion into lookup
1935
1936
intkey_array_t=PyArray_TYPE(key_array);
1936
1937
1938
+
// NOTE: we only match numeric kinds of the KAT is 64 bit; we could support, for each key_array_t, a switch for every KAT, but the size of that code is huge and the performance benefit is not massive
1937
1939
if (kat_is_kind(self->keys_array_type, PyArray_DESCR(key_array)->kind)) {
0 commit comments