diff --git a/src/static_array.cr b/src/static_array.cr index b8a32eff0070..a30e7c49ddfa 100644 --- a/src/static_array.cr +++ b/src/static_array.cr @@ -65,7 +65,7 @@ struct StaticArray(T, N) def self.new(& : Int32 -> T) array = uninitialized self buf = array.to_unsafe - # Using a macro prevents slow compile times: https://github.com/crystal-lang/crystal/issues/2485 + # Unroll the loop in Crystal land to avoid slow compile times in release mode. See https://github.com/crystal-lang/crystal/issues/2485#issuecomment-644416515 {% for i in 0...N %} buf[{{i.id}}] = yield {{i.id}} {% end %}