System.Console is slow – IndexOutOfRange
Anyone who made any HackerRank problems considering performance has seen this phrase in the assignment: “watch out for slow IO”. We are used to thing about files, databases and such as potentially slow...
View ArticleGC can kill You. Practical GC performance counters in .NET – IndexOutOfRange
One of the steps in cookit is calculating similar recipes. This is what you can see on the left on the recipe page like this For the sake of clarity and manageability it’s scheduled as separate...
View Articlenetric.io - lightweight ASP.NET profiler · Maciek Lesiczka
Over the last year on my spare time, I’ve been working on profiler for ASP.NET apps - netric.io. This small tool instruments methods from chosen assemblies and visualizes statistics of their execution...
View ArticleInvoking methods dynamically in C#: Examples and benchmarks – Kuba on .NET
Imagine that you have a service, which receives requests to execute specific methods, possibly from a number of different underlying libraries that you don’t want to expose directly. Possible examples...
View Article[EN] The cost of garbage collection – IndexOutOfRange
Just how long does garbage collection take in .NET? Which generation takes longer?
View Article[EN] Debugging high memory usage. Part 1 - ProcDump – IndexOutOfRange
Reading time ~2 minutes I’m taking a short break from Hangfire series, but I will get back to it. This time - Where did my memory go ? Or to be more exact: Why is this using so much memory? The story...
View Article[EN]Debugging high memory usage. Part 2 - .NET Memory Profiler – IndexOutOfRange
Reading time ~4 minutes Diagnosing high memory usage can be tricky, here is the second part of how I found what was hogging to much memory in our system. In the previous post I’ve wrote how to create a...
View ArticleHryniewski.NET | Trzy słowa o optymalizacji LINQ
Kontynuując wątek LINQ, który podjąłem jakiś czas temu, poruszę dziś temat optymalizacji operacji jakie wykonujemy na kolekcjach. Na starcie muszę się przyznać, że tytuł nie jest do końca zgodny z...
View Article[EN] Problems with AsParallel – IndexOutOfRange
Reading time ~6 minutes This post is covering a subset of what I am talking in my talk How I stopped worrying and learned to love parallel processing (currently only in polish). This will cover on how,...
View Article[EN] The ugly truth behind pretty URLs
Attribute routing (RouteAttribute) is a quite handy feature of ASP.NET MVC. It allows you to have nice looking URLs that everybody has already accustomed to and your client surely loves it. Plus it...
View Article[EN] Entity Framework 6 - Dynamically creating temporary tables from...
I'm a huge fan of entity based and result set based relational mapping (classic ORMs). I'm also huge fan of DML based relational mapping (micro ORMs). In general I'm a huge fan of every technology that...
View ArticleUsing bit masks for high-performance calculations – IndexOutOfRange
Reading time ~6 minutes Last time I’ve shown how I’ve gone from 34 hours to 11. This time we go faster. To go faster I have to do less. The current implementation of Similarity iterates over one vector...
View ArticleIndependent code in performance optimizations – IndexOutOfRange
Reading time ~1 minute This will be a fast errata to the previous one. This time I will expand the oldest performance mantra: The fastest code is the one that doesn’t execute. Second to that is the one...
View ArticleMaking bits faster – IndexOutOfRange
Reading time ~2 minutes This post was inspired by a discussion on Reddit that followed my previous post In this post, I will cover a suggestion by BelowAverageITGuy that cut down the total execution...
View Article[EN] Entity Framework 6 - Dynamically creating temporary tables from...
In previous post I've shown how a temporary table can be generated based on IQueryable and then reused in subsequent queries. I have also pointed out a serious limitation. The goal of this post is to...
View ArticleDividing a bit in two for performance – IndexOutOfRange
Reading time ~4 minutes This post is an analysis of a very interesting optimization proposed by Nicholas Frechette in the comments under the previous post. He proposed to use one of the oldest tricks...
View ArticleWant unlimited scale and performance? This is where to start – IndexOutOfRange
Reading time ~10 minutes This article is Part 2 in a 2-Part Series. Part 1 - What is the simplest database?Part 2 - This Article The previous post laid out the most minimum requirements for something...
View ArticleZ tym warto się zapoznać #2 - PoznajProgramowanie.pl
Paczka wartościowych materiałów, które możecie znaleźć w sieci. Jeżeli chcesz zapoznać się z pozostałymi ciekawymi linkami możesz zrobić to tutaj...
View ArticleProtobufRaw vs protobuf-net | Szymon Kulec `Scooletz`
Podczas pracy nad moim nowym projektem SewingMachine zacząłem zastanawiać się, czy w szczególnych wypadkach, serializacja obiektów nie mogłaby zachodzić szybciej. Zachęcam do poznania podejścia, które...
View ArticleF# vs C#: a performance comparison with BenchmarkDotNet – Youenn Bouglouan
A simple performance comparison between approaches encouraged by F# (immutability and functional programming) and C# (mutability and OOP). Which one would you choose?
View Article