Why C# multidimensional arrays are slow

In a previous blog post I detailed how you can speed up array access in certain cases. This time I’m taking a look at what is happening when we access arrays in .Net, and digging into why multidimensional arrays are slow. First a quick refresher on array types. Array This is just a standard array. … Read more

Battlefield Heroes Rcon .Net library

What is BFH? Battlefield Heroes is a free-to-play first person cartoon shooter. 8×8 players battle it out on different maps using traditional weapons and special abilities. My server http://www.battlefieldheroes.com/en/bookmark/server:0104ea2f-1c0f-42a1-b05e-e19e33a6f4ba You need to bookmark, start the game, select “Game finder”, select “Bookmarked” and locate the server to join it. Background For the past few years I … Read more

.Net tools to use: log4net

log4net http://logging.apache.org/log4net/ Description Free popular logging system developed by Apache Foundation. Difficulty 1 line at top of each class. A standard XML-section in web.config. Sample usage: [sourcecode language=”csharp”] // At the top of every class you set up a static logger with the class name (retrieved through System.Reflection) private static log4net.ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType) // … Read more