We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45e0d03 commit 9f12b23Copy full SHA for 9f12b23
distributed/comm/utils.py
@@ -20,6 +20,7 @@
20
21
# Find the function, `host_array()`, to use when allocating new host arrays
22
try:
23
+ # Use NumPy, when available, to avoid memory initialization cost
24
import numpy
25
26
host_array = lambda n: memoryview(numpy.empty((n,), dtype="u1")) # type: ignore
0 commit comments