From 212caea18f10592b61de038ff73df46b9af496ec Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Mon, 3 Mar 2025 22:46:23 +0100 Subject: [PATCH] Change the batch_size to be power of two. Add param to the docstring Signed-off-by: Manuel Saelices --- mojo/stdlib/src/collections/inline_array.mojo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mojo/stdlib/src/collections/inline_array.mojo b/mojo/stdlib/src/collections/inline_array.mojo index dd2cc203ac..3e259365ab 100644 --- a/mojo/stdlib/src/collections/inline_array.mojo +++ b/mojo/stdlib/src/collections/inline_array.mojo @@ -132,9 +132,12 @@ struct InlineArray[ @always_inline @implicit - fn __init__[batch_size: Int = 100](out self, fill: Self.ElementType): + fn __init__[batch_size: Int = 64](out self, fill: Self.ElementType): """Constructs an empty array where each element is the supplied `fill`. + Parameters: + batch_size: The number of elements to unroll for filling the array. + Args: fill: The element to fill each index. """