Skip to content

Commit 212caea

Browse files
committed
Change the batch_size to be power of two. Add param to the docstring
Signed-off-by: Manuel Saelices <msaelices@gmail.com>
1 parent edadb98 commit 212caea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mojo/stdlib/src/collections/inline_array.mojo

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ struct InlineArray[
132132

133133
@always_inline
134134
@implicit
135-
fn __init__[batch_size: Int = 100](out self, fill: Self.ElementType):
135+
fn __init__[batch_size: Int = 64](out self, fill: Self.ElementType):
136136
"""Constructs an empty array where each element is the supplied `fill`.
137137
138+
Parameters:
139+
batch_size: The number of elements to unroll for filling the array.
140+
138141
Args:
139142
fill: The element to fill each index.
140143
"""

0 commit comments

Comments
 (0)