eden/src/common
lizzie 83a28dc251
[common, core] remove uneeded memory indirection overhead at startup (#3306)
for core stuff:
just remove unique ptrs that dont need any pointer stability at all (afterall its an allocation within an allocation so yeah)

for fibers:
Main reasoning behind this is because virtualBuffer<> is stupidly fucking expensive and it also clutters my fstat view
ALSO mmap is a syscall, syscalls are bad for performance or whatever
ALSO std::vector<> is better suited for handling this kind of "fixed size thing where its like big but not THAT big" (512 KiB isn't going to kill your memory usage for each fiber...)

for core.cpp stuff
- inlines stuff into std::optional<> as opposed to std::unique_ptr<> (because yknow, we are making the Impl from an unique_ptr, allocating within an allocation is unnecessary)
- reorganizes the structures a bit so padding doesnt screw us up (it's not perfect but eh saves a measly 44 bytes)
- removes unused/dead code
- uses std::vector<> instead of std::deque<>

no perf impact expected, maybe some initialisation boost but very minimal impact nonethless
lto gets rid of most calls anyways - the heavy issue is with shared_ptr and the cache coherency from the atomics... but i clumped them together because well, they kinda do not suffer from cache coherency - hopefully not a mistake

this balloons the size of Impl to about 1.67 MB - which is fine because we throw it in the stack anyways

REST OF INTERFACES: most of them ballooned in size as well, but overhead is ok since its an allocation within an alloc, no stack is used (when it comes to storing these i mean)

Signed-off-by: lizzie lizzie@eden-emu.dev
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3306
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
2026-01-16 23:39:16 +01:00
..
android [android] input over(lay)haul 2: Individual scaling of buttons (#2562) 2025-09-29 22:38:26 +02:00
arm64
fs [qt, android] Implement custom save path setting and migration + Implement custom path settings for Android (#3154) 2025-12-31 21:20:30 +01:00
logging [logging] disable windows-only debugger backend on non-windows platforms (#3032) 2025-12-01 05:42:02 +01:00
windows [port] windows 7 support (#3105) 2025-11-30 06:04:36 +01:00
x64 [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
address_space.cpp
address_space.h
address_space.inc
algorithm.h
alignment.h
announce_multiplayer_room.h [chore] Fixed a couple memory leaks using up ~15 MB each iteration (#398) 2025-12-26 02:55:52 +01:00
assert.cpp [common] Do not expose platform specific Crash() macro that is only used ever once (#2909) 2025-11-03 21:07:30 +01:00
assert.h [common] asserts now display expression of assert (#2997) 2025-12-01 05:06:57 +01:00
atomic_ops.h [common] provide fallback for lack of atomic u128 support (#2999) 2025-11-13 13:27:32 +01:00
bit_field.h
bit_util.h
bounded_threadsafe_queue.h [video_core] reduce SPSC/MPSC queue contention for commands (#289) 2025-11-16 22:39:46 +01:00
cityhash.cpp
cityhash.h
CMakeLists.txt [common] move spinlock to pure header def (#3287) 2026-01-13 04:17:27 +01:00
common_funcs.h [common] Do not expose platform specific Crash() macro that is only used ever once (#2909) 2025-11-03 21:07:30 +01:00
common_types.h [tools, cmake] refactor: update/hash check scripts, use tags for some more deps, proper CPMUtil separation (#2666) 2025-10-05 03:04:53 +02:00
concepts.h [common] replace Common::(DerivedFrom, IsArithmetic, Size, ConvertibleTo, IsIntegral) with libstdc++ equivalents (#290) 2025-11-07 17:03:01 +01:00
container_hash.h
demangle.cpp [compat] Solaris build fixes for openssl, catch2; NetBSD build fixes (#2752) 2025-10-17 22:12:58 +02:00
demangle.h
detached_tasks.cpp
detached_tasks.h
device_power_state.cpp Add Device Power State (Windows, Linux, Mac and Android) (#197) 2025-06-18 08:34:54 +00:00
device_power_state.h Add Device Power State (Windows, Linux, Mac and Android) (#197) 2025-06-18 08:34:54 +00:00
div_ceil.h
dynamic_library.cpp Update fmt to allow for v11 2025-04-10 01:11:22 +02:00
dynamic_library.h
elf.h
error.cpp
error.h
expected.h
fiber.cpp [common, core] remove uneeded memory indirection overhead at startup (#3306) 2026-01-16 23:39:16 +01:00
fiber.h [common, core] remove uneeded memory indirection overhead at startup (#3306) 2026-01-16 23:39:16 +01:00
fixed_point.h [common] replace Common::(DerivedFrom, IsArithmetic, Size, ConvertibleTo, IsIntegral) with libstdc++ equivalents (#290) 2025-11-07 17:03:01 +01:00
free_region_manager.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
hash.h
heap_tracker.cpp Partial revert "[common] remove HeapTracker (#3001)" (#3107) 2025-11-27 15:31:34 +01:00
heap_tracker.h Partial revert "[common] remove HeapTracker (#3001)" (#3107) 2025-11-27 15:31:34 +01:00
hex_util.cpp
hex_util.h Update fmt to allow for v11 2025-04-10 01:11:22 +02:00
host_memory.cpp [host_memory] remove unused fastmem fallback path (#3133) 2026-01-13 02:06:35 +01:00
host_memory.h [host_memory] remove unused fastmem fallback path (#3133) 2026-01-13 02:06:35 +01:00
input.h
intrusive_list.h
intrusive_red_black_tree.h
literals.h
lru_cache.h
lz4_compression.cpp
lz4_compression.h
make_unique_for_overwrite.h
math_util.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
memory_detect.cpp
memory_detect.h
multi_level_page_table.cpp
multi_level_page_table.h
multi_level_page_table.inc
overflow.h [common] replace Common::BitCast with libc++ provided one (#2774) 2025-10-22 02:56:28 +02:00
page_table.cpp [dynarmic, common] pagetable clustering (#3215) 2026-01-13 00:27:31 +01:00
page_table.h [dynarmic, common] pagetable clustering (#3215) 2026-01-13 00:27:31 +01:00
param_package.cpp
param_package.h
parent_of_member.h
point.h
polyfill_thread.h [common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14) (#351) 2025-10-01 06:59:35 +02:00
quaternion.h
range_map.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
range_mutex.h
range_sets.h
range_sets.inc [cmake] enable clang-cl and WoA builds (#348) 2025-09-09 20:47:49 +02:00
ring_buffer.h [cmake] enable clang-cl and WoA builds (#348) 2025-09-09 20:47:49 +02:00
scm_rev.cpp.in [fixup] fix bad variable names (#2642) 2025-10-01 16:36:07 +02:00
scm_rev.h [meta] allow customisation of auto-updater, remove hardcoded title names and fix dup title names (#2588) 2025-10-01 05:07:59 +02:00
scope_exit.h scope_exit: Make constexpr 2024-02-19 16:00:46 +01:00
scratch_buffer.h
settings_common.cpp
settings_common.h [desktop, settings] new RendererHacks category, move to Extensions -> Extras, fix GPU accuracy naming (#3245) 2025-12-31 23:45:58 +01:00
settings_enums.h [video_core] Implement GPU-accelerated texture unswizzling and optimize sparse texture handling (#3246) 2026-01-13 19:18:08 +01:00
settings_input.cpp
settings_input.h
settings_setting.h [desktop] fix audio output engine not saving (#3083) 2025-11-25 00:20:16 +01:00
settings.cpp [desktop, settings] new RendererHacks category, move to Extensions -> Extras, fix GPU accuracy naming (#3245) 2025-12-31 23:45:58 +01:00
settings.h [video_core] Implement GPU-accelerated texture unswizzling and optimize sparse texture handling (#3246) 2026-01-13 19:18:08 +01:00
signal_chain.cpp
signal_chain.h
slot_vector.h [compat] Debian stable gcc12/clang14 compilation fixes (#2763) 2025-10-18 01:54:43 +02:00
socket_types.h
spin_lock.h [common] move spinlock to pure header def (#3287) 2026-01-13 04:17:27 +01:00
stb.cpp
stb.h
steady_clock.cpp [port] windows 7 support (#3105) 2025-11-30 06:04:36 +01:00
steady_clock.h
stream.cpp
stream.h
string_util.cpp [common, fs] Use std::string_view instead of std::string&; inline functions that are used rarely (#330) 2025-08-27 22:21:04 +02:00
string_util.h [common, fs] include missing header introduced on #330 (#370) 2025-08-31 08:40:46 +02:00
swap.h [common] fix formatting of swapped u32_le/u64_le for BE targets (#2998) 2025-11-13 13:23:46 +01:00
thread_queue_list.h
thread_worker.h [common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14) (#351) 2025-10-01 06:59:35 +02:00
thread.cpp [port] windows 7 support (#3105) 2025-11-30 06:04:36 +01:00
thread.h [common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14) (#351) 2025-10-01 06:59:35 +02:00
threadsafe_queue.h [common] use libc++ provided jthread instead of in-house one (which deadlocks on FBSD 14) (#351) 2025-10-01 06:59:35 +02:00
time_zone.cpp
time_zone.h
tiny_mt.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
tree.h [common] Use U8 for colour of RB-tree instead of integer to save space (#228) 2025-08-15 23:21:15 +02:00
typed_address.h Update fmt to allow for v11 2025-04-10 01:11:22 +02:00
uint128.h [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
unique_function.h
uuid.cpp Update fmt to allow for v11 2025-04-10 01:11:22 +02:00
uuid.h [desktop, core] yuzu -> Eden, eden -> Eden 2025-07-19 00:12:21 -04:00
vector_math.h [vector_math]: Use NEON intrinsics in Vec4 dot operation (#177) 2025-08-02 01:48:04 +02:00
virtual_buffer.cpp [compat] HaikuOS port (#2805) 2025-10-22 04:53:40 +02:00
virtual_buffer.h
wall_clock.cpp [common, core] remove uneeded memory indirection overhead at startup (#3306) 2026-01-16 23:39:16 +01:00
wall_clock.h [common, core] remove uneeded memory indirection overhead at startup (#3306) 2026-01-16 23:39:16 +01:00
zstd_compression.cpp
zstd_compression.h