godot/core/templates
aaronp64 c1afe7dcdf Improve CowData::insert performance
Update CowData::insert to call ptrw() before loop, to avoid calling _copy_on_write for each item in the array, as well as repeated index checks in set and get.  For larger Vectors/Arrays, this makes inserts around 10x faster for ints, 3x faster for Strings, and 2x faster for Variants.  Less of an impact on smaller Vectors/Arrays, as a larger percentage of the time is spent allocating.
2024-07-15 14:01:19 -04:00
..
bin_sorted_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
command_queue_mt.cpp CommandQueueMT: Pre-allocate memory to avoid a bunch of allocations at startup 2024-05-09 11:51:07 +02:00
command_queue_mt.h WorkerThreadPool: Refactor deadlock prevention collaboration into a generic mechanism 2024-06-19 14:01:54 +02:00
cowdata.h Improve CowData::insert performance 2024-07-15 14:01:19 -04:00
hash_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
hash_set.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
hashfuncs.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
list.h Reduce and prevent unnecessary random-access to List 2024-05-04 16:08:55 +02:00
local_vector.h [Core] Add LocalVector::has for convenience 2024-05-06 18:03:37 +02:00
lru.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
oa_hash_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
paged_allocator.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
paged_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
pair.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
pass_func.h
pooled_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rb_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rb_set.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rid_owner.cpp
rid_owner.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rid.h
ring_buffer.h Fix GCC 14 -Wtemplate-id-cdtor warnings 2024-04-26 11:41:09 +02:00
safe_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
safe_refcount.h Fix GCC 14 -Wtemplate-id-cdtor warnings 2024-04-26 11:41:09 +02:00
SCsub
search_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
self_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
simple_type.h Redefine GetSimpleTypeT<> in terms of <type_traits> 2024-04-24 11:43:13 +02:00
sort_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
vector.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
vmap.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
vset.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00