Skip to content

Commit 2beb398

Browse files
committed
make it nogil
1 parent d35db71 commit 2beb398

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/_libs/hashtable_func_helper.pxi.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ ctypedef fused table_t:
1111
kh_pymap_t
1212

1313

14-
cdef inline kh_resize(table_t *table, int n):
14+
cdef inline void kh_resize(table_t *table, int n) nogil:
1515
if table_t is kh_float64_t:
1616
kh_resize_float64(table, n)
1717
if table_t is kh_uint64_t:
1818
kh_resize_uint64(table, n)
1919
if table_t is kh_int64_t:
2020
kh_resize_int64(table, n)
2121
if table_t is kh_pymap_t:
22-
kh_resize_pymap(table, n)
22+
with gil:
23+
kh_resize_pymap(table, n)
2324

2425

2526
cdef inline kh_destroy(table_t *table):

0 commit comments

Comments
 (0)