ryujinx-mirror/Ryujinx/Ui
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
..
Applet Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00
Helper Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
Widgets Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
Windows Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
GLRenderer.cs Replace DllImport usage with LibraryImport (#4084) 2022-12-15 18:07:31 +01:00
MainWindow.cs Update LibHac to 0.18.0 (#4414) 2023-03-01 23:42:27 -03:00
MainWindow.glade GUI: Add option to register file types (#4250) 2023-01-22 17:39:00 +00:00
OpenToolkitBindingsContext.cs Miria: The Death of OpenTK 3 (#2194) 2021-04-14 12:28:43 +02:00
RendererWidgetBase.cs Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
SPBOpenGLContext.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
StatusUpdatedEventArgs.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
VKRenderer.cs Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00