Stackalloc and Spans
9.1 هزار بار بازدید -
پارسال
-
Allocating memory on the heap
Allocating memory on the heap can slow a program down by creating work for the .NET garbage collector. In C# we can improve performance by using the stack instead.
Source code available at: https://github.com/JasperKent/Spans-a...
Topics include:
- Referencing contiguous memory with Span and ReadOnlySpan
- Allocating on the stack with stackalloc
- Writing high performance methods with zero heap allocation
- Avoiding the need for unsafe code
- Fast text parsing
Source code available at: https://github.com/JasperKent/Spans-a...
Topics include:
- Referencing contiguous memory with Span and ReadOnlySpan
- Allocating on the stack with stackalloc
- Writing high performance methods with zero heap allocation
- Avoiding the need for unsafe code
- Fast text parsing
پارسال
در تاریخ 1401/10/30 منتشر شده
است.
9,103
بـار بازدید شده