mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add performance note to Array.resize()
(cherry picked from commit 80b636069a)
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
<return type="int" />
|
||||
<param index="0" name="new_size" type="int" />
|
||||
<description>
|
||||
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
|
||||
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. Calling [method resize] once and assigning the new values is faster than adding new elements one by one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reverse">
|
||||
|
||||
Reference in New Issue
Block a user