Top all-time · #6628
Meziantou's blog
Personal blog · meziantou.netprogramming
Meziantou's blog is a personal blog at meziantou.net about programming. Since 2019, 12 different Hacker News readers have linked it 15 times, most often “Some performance tricks with .Net strings”. It is still writing: the last post was on 2026-10-30, and you can follow it by feed.
Practical articles about .NET and C#, from quick tips to deep dives: performance, testing, diagnostics, Roslyn analyzers, MSBuild, NuGet, PowerShell, and git.
Most-linked posts?
- Some performance tricks with .Net strings2 people · 2 mentions · first linked 2019-03-04
What Hacker News says?
You're micro-optimizing the wrong thing, most of the time taken in C# is in the .Split(' ', StringSplitOptions.RemoveEmptyEntries) (which is UNICODE instead of ASCII as in other languages by the way) and also Console.ReadLine(). C# supports non-allocating splitting via the Span / ReadOnlySpan see this article about this very question: https://www.meziantou.net/split-a-string-into-lines-without-... You can also use t…
Comment linking /split-a-string-into-lines-without-allocation.htm
on “Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust”Submitted C# 9 – Improving performance using the SkipLocalsInit attribute as a story · 3 points
HN discussionBut there is: https://www.meziantou.net/inline-snapshot-testing-in-dotnet....
Comment linking /inline-snapshot-testing-in-dotnet.htm
on “Jane Street Blog – What if writing tests was a joyful experience?”Submitted C# Compiler Strict Mode as a story · 3 points
HN discussionWhile this article is specifically about a .NET Core ORM, I thought it was interesting because of the SQL Server `hierarchyid` data type[0], which has existed since SQL Server 2008, yet as someone who has worked with SQL Server for decades, I somehow didn't know about it! [0] https://www.meziantou.net/sql-server-discovering-the-hierarc...
Comment linking /sql-server-discovering-the-hierarchyid-data-type.htm
on “Using SQL Server HierarchyId with Entity Framework Core”Submitted Some performance tricks with .Net strings as a story · 3 points
HN discussionSubmitted Performance benefits of sealed class in .NET as a story · 2 points
HN discussionSubmitted Executing code before Main in .NET as a story · 2 points
HN discussionSubmitted Some performance tricks with .NET strings as a story · 2 points
HN discussionSubmitted Supporting Hot Reload in your .NET application (2021) as a story · 1 points
HN discussionSubmitted How to check if a DLL and an exe is a .NET assembly as a story · 1 points
HN discussionSubmitted Run any .NET method from JavaScript with o needing all of Blazor as a story · 1 points
HN discussionSubmitted Misconceptions about Date and Time as a story · 1 points
HN discussionSubmitted Using SQL Server HierarchyId with Entity Framework Core as a story · 1 points
HN discussionSubmitted Some performance tricks with .Net strings as a story · 1 points
HN discussion