Browse Source
kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optional
kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optional
There's no real need to use a shared lifetime here, since we don't actually expose them to anything else. This is also kind of an unnecessary use of the heap given the objects themselves are so small; small enough, in fact that changing over to optionals actually reduces the overall size of the HLERequestContext struct (818 bytes to 808 bytes).pull/15/merge
4 changed files with 47 additions and 47 deletions
-
2src/core/hle/ipc_helpers.h
-
14src/core/hle/kernel/hle_ipc.cpp
-
15src/core/hle/kernel/hle_ipc.h
-
15src/core/hle/kernel/server_session.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue