Skip to content

Commit 6db14b4

Browse files
committed
Briefly mention List<>
1 parent 7b5a147 commit 6db14b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contributing/development/core_and_modules/core_types.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ nor ``Vector<>`` are drop-in replacements for each other. They are two
123123
unrelated types with similar interfaces, both using a buffer as their
124124
storage strategy.
125125

126+
``List<>`` is another Godot sequence type, using a doubly-linked list as
127+
its storage strategy. Prefer ``Vector<>`` (or ``LocalVector<>``) over
128+
``List<>`` unless you're sure you need it, as cache locality and memory
129+
fragmentation tend to be more important with small collections.
130+
126131
References:
127132
~~~~~~~~~~~
128133

0 commit comments

Comments
 (0)