Ryujinx-uplift/Ryujinx.HLE/HOS
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
..
Applets Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Diagnostics/Demangler Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
Ipc Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Kernel Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Services Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
SystemState make UI display correct content in Chinese (#4155) 2022-12-21 17:20:37 -03:00
Tamper Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
ApplicationLoader.cs Update LibHac to 0.18.0 (#4414) 2023-03-01 23:42:27 -03:00
ArmProcessContext.cs Make PPTC state non-static (#4157) 2023-01-05 00:01:44 +01:00
ArmProcessContextFactory.cs Initial Apple Hypervisor based CPU emulation (#4332) 2023-01-29 08:37:52 -03:00
HomebrewRomFsStream.cs Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Horizon.cs Update syscall capabilites to include SVCs from FW 15.0.0 (#4530) 2023-03-17 12:55:19 +01:00
IdDictionary.cs Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
LibHacHorizonManager.cs Update to LibHac 0.17.0 (#3878) 2022-11-23 18:32:35 +01:00
ModLoader.cs Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
ProgramLoader.cs Update syscall capabilites to include SVCs from FW 15.0.0 (#4530) 2023-03-17 12:55:19 +01:00
ResultCode.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ServiceCtx.cs hos: Cleanup the project (#2634) 2021-09-15 01:24:49 +02:00
TamperMachine.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
UserChannelPersistence.cs Fix exiting emulator with multi programs (#1590) 2020-10-10 00:52:11 +02:00