Intro: always measure first and test after
Start simple:
-
class vs. struct
-
pre-alloc container sizes if possible
-
string.Substring(1, 10);
-
stackalloc byte[]/Span
-
for loops vs. foreach loops
-
closures
-
avoid unnecessary async statemachine