Skip to content

Commit 9f12b23

Browse files
committed
Comment on NumPy allocation pathway
1 parent 45e0d03 commit 9f12b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

distributed/comm/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
# Find the function, `host_array()`, to use when allocating new host arrays
2222
try:
23+
# Use NumPy, when available, to avoid memory initialization cost
2324
import numpy
2425

2526
host_array = lambda n: memoryview(numpy.empty((n,), dtype="u1")) # type: ignore

0 commit comments

Comments
 (0)