Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
EFFICIENT CREATION OF AN EMPTY COLLECTION IN .NET
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Benjamin Abt
June 02, 2022
Programming
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
EFFICIENT CREATION OF AN EMPTY COLLECTION IN .NET
https://github.com/BenjaminAbt/SustainableCode
Benjamin Abt
June 02, 2022
Transcript
3 slides
EFFICIENT CREATION OF AN EMPTY COLLECTION IN
There are several ways to create a list: - Using
a list: List<string>() - By creating an array new string[]() - With the helper Enumerable.Empty<string>() But what is the most efficient way?
https://github.com/BenjaminAbt/SustainableCode
More Decks by Benjamin Abt
See All by Benjamin Abt
.NET - ToUpper vs. ToLower
abt
0
210
SustainableCode: Improve performance and reduce allocations with object pooling in .NET
abt
0
1.3k
Azure Data Centers and Regions
abt
0
950
Azure Static Web Apps
abt
0
1.2k
DateTime vs. DateTimeOffset in .NET
abt
1
1.4k
What's new in Visual Studio 2022
abt
0
520
Other Decks in Programming
See All in Programming
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
190
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
320
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
130
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
650
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
170
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
100
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
260
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
250
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
250
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
300
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Deep Space Network (abreviated)
tonyrice
0
410
Build your cross-platform service in a week with App Engine
jlugia
234
19k
First, design no harm
axbom
PRO
2
1.4k
Color Theory Basics | Prateek | Gurzu
gurzu
1
520
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
3.8k
Believing is Seeing
oripsolob
1
280
Into the Great Unknown - MozCon
thekraken
41
2.8k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The untapped power of vector embeddings
frankvandijk
2
2k