Forráskód Böngészése

Briefly mention List<>

Sai Nane 10 hónapja
szülő
commit
6db14b42cf

+ 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:
 ~~~~~~~~~~~
 ~~~~~~~~~~~