summaryrefslogtreecommitdiffstats
path: root/doc/classes/PackedByteArray.xml
diff options
context:
space:
mode:
authorMewPurPur <mew.pur.pur@gmail.com>2023-11-09 16:17:18 +0200
committerMewPurPur <mew.pur.pur@gmail.com>2023-11-10 00:41:39 +0200
commit80b636069ae8a19e8e652c5f28cdb6d1e543cdb0 (patch)
treebf94d2dbfb8325920a12363ef356b2121020dbd1 /doc/classes/PackedByteArray.xml
parentb733901e9e650fc2f1a43627be2379f5ba200f8d (diff)
downloadredot-engine-80b636069ae8a19e8e652c5f28cdb6d1e543cdb0.tar.gz
Add performance note to Array.resize()
Diffstat (limited to 'doc/classes/PackedByteArray.xml')
-rw-r--r--doc/classes/PackedByteArray.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml
index 516cc9f020..a934d32a6d 100644
--- a/doc/classes/PackedByteArray.xml
+++ b/doc/classes/PackedByteArray.xml
@@ -397,7 +397,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">