Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
marcgravell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
marcgravell
15y ago
Actually, there's absolutely wrong with using + for individual expressions; it is actually the correct way of doing it (a + b + c + d compiles to String.Concat(a,b,c,d) ) - the problem is if you are doing this in a loop , where you get
2.
▲
by
marcgravell
15y ago
"Step" is a static-call to an extension method. This way allows your code to keep working fine (unchanged) for users that aren't profiling (i.e. 99.99% of the users).
3.
▲
by
marcgravell
15y ago
Note to go with this I've now updated the nuget package ( http://nuget.org/List/Packages/MiniProfiler ) so it is easy to deploy. Enjoy. (also: http://marcgravell.blogspot.com/2011/06/profiling-with-knobs... )