dotnetomaniak.pl - Artykuły z tagiem alokacja pamieci

Nik June 30th, 2021 With the release of Visual Studio 16.10 comes a new analysis engine for the Performance Profiler, with the .NET Object Allocation Tool being the first tool to be onboarded. This provides the tool with some new features and a significant perf boost. Give it a shot with your C# app and see what spurious allocations you can remove to speed up your app! The .NET Object Allocation Tool now has support for Source Link which lets the tool pull down source files when going to source. This ...

Dziel się z innymi:
.NET Object Allocation Tool Performance | Visual Studio Blog

Narzędzia 1023 dni, 1 godzinę temu Piotr Stapp 20 źrodło rozwiń

Reducing memory allocations from 7.5GB to 32KB Contents Context of the problem Establishing a baseline Easy win 1 Easy win 2 Splits are never cool Lists are not always nice Pooling byte arrays Goodbye StringBuilder Skipping commas The war between classes and structs Goodbye StreamReader TLDR - give me a table

Źródło: dev.to
Dziel się z innymi:
[EN] Strings Are Evil - DEV Community 👩‍💻👨‍💻

Sztuka programowania 2121 dni, 3 godziny, 46 minut temu Piotr Stapp 45 źrodło rozwiń

In this post we will implement basic memory allocator which will be able to allocate any object from scratch. We will also hijack new operator in order to be able to decide where objects should be allocated by .NET platform.

Dziel się z innymi:
[EN] Custom memory allocation in C# — Hijacking new operator

Inne 2862 dni, 3 godziny, 52 minuty temu https://afishxd.wordpress.com/ 199 źrodło rozwiń

Czasami zachodzi potrzeba wykonania krytycznego kodu, który zużywa dużo zasobów. Podobnie jak w CER, nie chcemy wykonywać kodu jeśli wiemy, że nie ma wystarczającej pamięci. W .NET istnieje klasa MemoryFailPoint, która potrafi z góry “zaalokować” określoną pamięć.publicsealedclass MemoryFailPoint : CriticalFinalizerObject, IDisposable { public MemoryFailPoint(Int32 sizeInMegabytes); ~MemoryFailPoint(); publicvoid Dispose(); } MemoryFailPoint sprawdzi czy jest dostępna pamięć. Jeśli jej nie...

Dziel się z innymi:
Piotr Zieliński » MemoryFailPoint: alokowanie dużej ilości pamięci

Sztuka programowania 4074 dni, 11 godzin, 31 minut temu pzielinski 100 źrodło rozwiń

Najaktywniejsi w tym miesiącu