Add performance note to Array.resize()

(cherry picked from commit 80b636069a)
This commit is contained in:
MewPurPur
2023-11-09 16:17:18 +02:00
committed by Yuri Sizov
parent 7e33c6bf22
commit 06ccf2bbb5
10 changed files with 10 additions and 9 deletions

View File

@@ -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">