Posts Tagged branching

C++ For C# Developers: Part 23 – Compile-Time Programming

Tags: , , , , , ,

The vast majority of the code we write executes at runtime. Today’s article is about the other kind of code, which runs during compilation. C# has very limited support for this. In C++, especially its newer versions, most of the language features are usable at compile-time. Read on to learn how to take advantage of this!

Read the rest of this article »

5 Comments

If-Else is Really Expensive

Tags: , , ,

Sometimes a tiny amount of code costs a huge amount of performance. This is especially true of built-in language features, which many programmers assume to be extremely cheap if not free. Today we’ll look at if and see just how much performance it can cost your app. Read on to see!

Read the rest of this article »

7 Comments

The Cost of If-Else

Tags: , ,

The if-else keyword is not free. So, how expensive is it? Today’s article finds out.

Read the rest of this article »

7 Comments