0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/ARMeilleure
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
..
CodeGen Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Common Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163) 2022-12-27 20:27:11 +01:00
Decoders Misc performance tweaks (#4509) 2023-03-11 17:05:48 -03:00
Diagnostics Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
Instructions Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
IntermediateRepresentation Implement JIT Arm64 backend (#4114) 2023-01-10 19:16:59 -03:00
Memory Clear CPU side data on GPU buffer clears (#4125) 2023-02-16 18:28:49 -03:00
Native Implement JIT Arm64 backend (#4114) 2023-01-10 19:16:59 -03:00
Signal Clear CPU side data on GPU buffer clears (#4125) 2023-02-16 18:28:49 -03:00
State A64: Add fast path for Fcvtas_Gp/S/V, Fcvtau_Gp/S/V and Frinta_S/V in… (#3712) 2022-10-19 00:21:33 +00:00
Translation Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
Allocators.cs Optimize LSRA (#2563) 2021-10-08 18:15:44 -03:00
ARMeilleure.csproj Arm64: Simplify TryEncodeBitMask and use for constants (#4328) 2023-01-22 14:15:49 +00:00
Optimizations.cs Arm64: Cpu feature detection (#4264) 2023-01-12 08:05:18 +01:00
Statistics.cs Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919) 2020-04-21 07:59:59 +10:00