ryujinx/Ryujinx.HLE
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
..
Exceptions hos: Cleanup the project (#2634) 2021-09-15 01:24:49 +02:00
FileSystem Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
HOS Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Loaders Update syscall capabilites to include SVCs from FW 15.0.0 (#4530) 2023-03-17 12:55:19 +01:00
Ui Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
Utilities Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
AssemblyInfo.cs Prevent raw Unicode control codes from showing on software keyboard applet. (#3845) 2022-11-16 23:53:17 +01:00
HLEConfiguration.cs Initial Apple Hypervisor based CPU emulation (#4332) 2023-01-29 08:37:52 -03:00
Homebrew.npdm Better process implementation (#491) 2018-11-28 20:18:09 -02:00
MemoryConfiguration.cs Update units of memory from decimal to binary prefixes (#3716) 2022-11-16 23:27:42 +01:00
PerformanceStatistics.cs Adjustments to framerate metric and addition of frametime (#2638) 2021-09-15 02:26:10 +02:00
Ryujinx.HLE.csproj IPC refactor part 3+4: New server HIPC message processor (#4188) 2023-01-04 23:15:45 +01:00
Switch.cs IPC refactor part 3+4: New server HIPC message processor (#4188) 2023-01-04 23:15:45 +01:00