0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-26 23:35:46 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Am/AppletAE
jhorv 5131b71437
Reducing memory allocations (#4537)
* add RecyclableMemoryStream dependency and MemoryStreamManager

* organize BinaryReader/BinaryWriter extensions

* add StreamExtensions to reduce need for BinaryWriter

* simple replacments of MemoryStream with RecyclableMemoryStream

* add write ReadOnlySequence<byte> support to IVirtualMemoryManager

* avoid 0-length array creation

* rework IpcMessage and related types to greatly reduce memory allocation by using RecylableMemoryStream, keeping streams around longer, avoiding their creation when possible, and avoiding creation of BinaryReader and BinaryWriter when possible

* reduce LINQ-induced memory allocations with custom methods to query KPriorityQueue

* use RecyclableMemoryStream in StreamUtils, and use StreamUtils in EmbeddedResources

* add constants for nanosecond/millisecond conversions

* code formatting

* XML doc adjustments

* fix: StreamExtension.WriteByte not writing non-zero values for lengths <= 16

* XML Doc improvements. Implement StreamExtensions.WriteByte() block writes for large-enough count values.

* add copyless path for StreamExtension.Write(ReadOnlySpan<int>)

* add default implementation of IVirtualMemoryManager.Write(ulong, ReadOnlySequence<byte>); remove previous explicit implementations

* code style fixes

* remove LINQ completely from KScheduler/KPriorityQueue by implementing a custom struct-based enumerator
2023-03-17 13:14:50 +01:00
..
AllSystemAppletProxiesService Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
Storage Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Types no name: Mii Editor applet support (#2419) 2021-06-28 20:54:45 +02:00
AppletFifo.cs Initial swkbd implementation (#826) 2019-11-18 12:16:26 +01:00
AppletSession.cs Initial swkbd implementation (#826) 2019-11-18 12:16:26 +01:00
IAllSystemAppletProxiesService.cs no name: Mii Editor applet support (#2419) 2021-06-28 20:54:45 +02:00
IAppletFifo.cs Initial swkbd implementation (#826) 2019-11-18 12:16:26 +01:00
IStorage.cs Initial support for the new 12.x IPC system (#2182) 2021-04-14 00:01:24 +02:00
IStorageAccessor.cs HLE: Fix integer sign inconcistency accross the codebase (#2222) 2021-04-24 12:16:01 +02:00