Did you know… boxing / unboxing
August 19th, 2007… when you define a value type (structure) it’s a good idea to override System.Object’s virtual methods – ToString, Equals and GetHash. If you don’t, the framework will perform “boxing” when calling these methods. It can significantly slow your application.
Did you know… string concatenation
August 12th, 2007... that simple strings concatenating in C# can have impact on memory usage?
Let's look at this simple code:
-
string foo = "foo";
-
foo += " bar";
-
foo += " bar2";
-
foo += " bar3";
This causes that the compiler creates 3 additional strings on the stack, then garbage collector must clean it. Only the last string has a reference. If you make something like this very often in a loop consider using string's Concat or Join methods. StringBuilder is also a good choice.
How to fuck up a monitor
August 7th, 2007Once upon a time... ![]()
... it was a beautiful, shiny CRT monitor - NEC to be precise. This monitor has served great for many years.
And several days ago, his Master (me
) decided to clean it. Nothing special.
But Master didn't choose the right way. He took "Special German Cleaner"... for glasses
My first Slackware package
August 5th, 2007Today I created my first binary package for Slackware Linux. You can find it at http://www.sirmike.org/slackware-linux
I will put there some other packages in the future. Stay tuned
