SlideShare a Scribd company logo
.NET Performance Tips
#VISUALIZED
Igal Tabachnik
@hmemcpy
WoW – Word of Warning
•10 PREMATURE OPTIMIZATION
' …is the root of all evil (mostly)
•20 MEASURE ALL THE THINGS
' otherwise, you’re guessing
•30 GOTO 10
High Memory Traffic
• Garbage Collection (GC) internals are unknown to the public
(yet). Only the CLR team knows what’s really going on.
• Gen0 -> Gen1 -> Gen2
• More memory traffic = more GC time/app freeze/OOM
Memory Traffic: GC Pressure
•Hidden allocations
•Boxing
•Other stuff
LINQ
.NET Performance Tips #Visualized
More LINQ
.NET Performance Tips #Visualized
params
params – decompiled
IEnumerable<T> vs List<T>
IEnumerable<T> vs List<T>
/j #DEMO
GC.Collect()
GOTO 10
Finalize()
•Google:
• “resharper heapview”
• “roslyn perf tips” (bit.ly/dotnet-perf)
• “download ozcode” :)
THANK YOU!
•/msg nickserv +twitter @hmemcpy
• /msg nickserv +email hmemcpy@gmail.com

More Related Content

PDF
What's Special About Elixir
PDF
Monitoramento ambiental e alertas visuais com Zabbix - 3º Zabbix Meetup do In...
PDF
Go Profiling - John Graham-Cumming
PDF
Go memory
TXT
Samuel
PDF
Go debugging and troubleshooting tips - from real life lessons at SignalFx
PDF
Go Memory
ODP
Event Loop in Javascript
What's Special About Elixir
Monitoramento ambiental e alertas visuais com Zabbix - 3º Zabbix Meetup do In...
Go Profiling - John Graham-Cumming
Go memory
Samuel
Go debugging and troubleshooting tips - from real life lessons at SignalFx
Go Memory
Event Loop in Javascript

What's hot (7)

PDF
Odoo Online platform: architecture and challenges
PPTX
Ride the Snake: reddit keynote @ PyCon 09
PPTX
Scaling python webapps from 0 to 50 million users - A top-down approach
PDF
Доклад Антона Поварова "Go in Badoo" с Golang Meetup
PDF
Communicating Sequential Processes (CSP) in JavaScript
PPTX
All you need to know about the JavaScript event loop
PDF
Fighting async JavaScript (CSP)
Odoo Online platform: architecture and challenges
Ride the Snake: reddit keynote @ PyCon 09
Scaling python webapps from 0 to 50 million users - A top-down approach
Доклад Антона Поварова "Go in Badoo" с Golang Meetup
Communicating Sequential Processes (CSP) in JavaScript
All you need to know about the JavaScript event loop
Fighting async JavaScript (CSP)
Ad

Viewers also liked (10)

PPTX
Fibroid
PPTX
ReSharper Secrets
PPTX
PPTX
Fibroid cure by homeopathy
PPTX
First round selections for Islamic Art Exhibit case.
PDF
my cupon
PPT
Presentation on the value of diary for bhandhusaba
PPTX
Brantley dynamic-effective-services
PDF
PREPARATION AND QUALITY EVALUATION OF GINGER WINE
PPT
Fibroid
ReSharper Secrets
Fibroid cure by homeopathy
First round selections for Islamic Art Exhibit case.
my cupon
Presentation on the value of diary for bhandhusaba
Brantley dynamic-effective-services
PREPARATION AND QUALITY EVALUATION OF GINGER WINE
Ad

Similar to .NET Performance Tips #Visualized (20)

PPTX
.NET Garbage Collection Performance Tips
PPTX
Performance In The .Net World
PPTX
Performance is a feature! - Developer South Coast - part 2
PPTX
Exploring .NET memory management - A trip down memory lane - Copenhagen .NET ...
PPTX
ConFoo - Exploring .NET’s memory management – a trip down memory lane
PPTX
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
PPTX
Performance and how to measure it - ProgSCon London 2016
PPTX
Perf by design
PPTX
"Making .NET Application Even Faster", Sergey Teplyakov.pptx
PPTX
.Net Architecture and Performance Tuning
PPTX
Performance in .net best practices
PPTX
DotNetFest - Let’s refresh our memory! Memory management in .NET
PPTX
Performance is a Feature!
PDF
.NET Fest 2018. Maarten Balliauw. Let’s refresh our memory! Memory management...
PPTX
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
PPTX
Effective Memory Management - Memory Hygiene
PDF
Look Mommy, no GC! (.NET Summit 2017)
PPTX
Exploring .NET memory management - JetBrains webinar
PPTX
Exploring .NET memory management (iSense)
PPTX
CodeStock - Exploring .NET memory management - a trip down memory lane
.NET Garbage Collection Performance Tips
Performance In The .Net World
Performance is a feature! - Developer South Coast - part 2
Exploring .NET memory management - A trip down memory lane - Copenhagen .NET ...
ConFoo - Exploring .NET’s memory management – a trip down memory lane
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
Performance and how to measure it - ProgSCon London 2016
Perf by design
"Making .NET Application Even Faster", Sergey Teplyakov.pptx
.Net Architecture and Performance Tuning
Performance in .net best practices
DotNetFest - Let’s refresh our memory! Memory management in .NET
Performance is a Feature!
.NET Fest 2018. Maarten Balliauw. Let’s refresh our memory! Memory management...
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
Effective Memory Management - Memory Hygiene
Look Mommy, no GC! (.NET Summit 2017)
Exploring .NET memory management - JetBrains webinar
Exploring .NET memory management (iSense)
CodeStock - Exploring .NET memory management - a trip down memory lane

Recently uploaded (20)

PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
history of c programming in notes for students .pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
AutoCAD Professional Crack 2025 With License Key
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Nekopoi APK 2025 free lastest update
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
Cost to Outsource Software Development in 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
Complete Guide to Website Development in Malaysia for SMEs
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Odoo Companies in India – Driving Business Transformation.pdf
Salesforce Agentforce AI Implementation.pdf
Operating system designcfffgfgggggggvggggggggg
history of c programming in notes for students .pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Digital Systems & Binary Numbers (comprehensive )
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Weekly report ppt - harsh dattuprasad patel.pptx
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
AutoCAD Professional Crack 2025 With License Key
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Nekopoi APK 2025 free lastest update
iTop VPN Crack Latest Version Full Key 2025
Cost to Outsource Software Development in 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs
Advanced SystemCare Ultimate Crack + Portable (2025)
Complete Guide to Website Development in Malaysia for SMEs
Reimagine Home Health with the Power of Agentic AI​
Odoo Companies in India – Driving Business Transformation.pdf

.NET Performance Tips #Visualized