Browse Source

Briefly mention List<>

Sai Nane 6 months ago
parent
commit
6db14b42cf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contributing/development/core_and_modules/core_types.rst

+ 5 - 0
contributing/development/core_and_modules/core_types.rst

@@ -123,6 +123,11 @@ nor ``Vector<>`` are drop-in replacements for each other. They are two
 unrelated types with similar interfaces, both using a buffer as their
 unrelated types with similar interfaces, both using a buffer as their
 storage strategy.
 storage strategy.
 
 
+``List<>`` is another Godot sequence type, using a doubly-linked list as
+its storage strategy. Prefer ``Vector<>`` (or ``LocalVector<>``) over
+``List<>`` unless you're sure you need it, as cache locality and memory
+fragmentation tend to be more important with small collections.
+
 References:
 References:
 ~~~~~~~~~~~
 ~~~~~~~~~~~