JinxRyu/Ryujinx/Ui/Windows
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
..
AboutWindow.cs Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00
AboutWindow.Designer.cs Ava GUI: AboutWindow Refactor (#4196) 2023-01-07 01:29:18 +01:00
AmiiboWindow.cs Optimize string memory usage. Use Spans and StringBuilders where possible (#3933) 2023-01-18 22:25:16 +00:00
AmiiboWindow.Designer.cs nfp: Amiibo scanning support (#2006) 2021-03-18 21:40:20 +01:00
AvatarWindow.cs Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
CheatWindow.cs UI: Add Metal surface creation for MoltenVK (#3980) 2022-12-06 19:00:25 -03:00
CheatWindow.glade Add Cheat Manager (#2964) 2022-01-03 09:39:43 +01:00
ControllerWindow.cs Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
ControllerWindow.glade Implement rotate stick 90 degrees clockwise (#3084) 2022-03-12 18:23:48 +01:00
DlcWindow.cs Update LibHac to 0.18.0 (#4414) 2023-03-01 23:42:27 -03:00
DlcWindow.glade gui: Refactoring Part 1 (#1859) 2021-01-08 09:14:13 +01:00
SettingsWindow.cs Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
SettingsWindow.glade Add Support for Post Processing Effects (#3616) 2023-02-27 18:11:55 -03:00
TitleUpdateWindow.cs Update LibHac to 0.18.0 (#4414) 2023-03-01 23:42:27 -03:00
TitleUpdateWindow.glade gui: Refactoring Part 1 (#1859) 2021-01-08 09:14:13 +01:00
UserProfilesManagerWindow.cs Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
UserProfilesManagerWindow.Designer.cs gtk: Fixes warnings about obsolete components (#4049) 2022-12-07 01:49:37 +01:00