Posts Tagged ‘Optimization’

Optimizing Bounds Checking in C/C++

December 11th, 2009 Leave a Comment

Bounds-checking is always used in programming. We check if a given index of an array is out of bound, check if a value is within its the minimum and maximum boundary, and so on. This post discusses ways of optimizing bounds checking in C/C++. Read More...

Bitwise operators vs. Boolean operators in C/C++

November 5th, 2009 Leave a Comment

In this post, we look into the difference between Bitwise and Boolean operators in C/C++. We need to understand how the compiler interprets them so that we could write more efficient code, especially for performance-critical code in our library or application. Read More...

Algebra optimization for faster code in programming

November 4th, 2009 Leave a Comment

Most compilers optimize algebra equations for you. However, we can’t be sure that all equations are optimized. To play-safe, we can do the optimization ourselves at the code level. This post shows various examples of algebra optimization that could be employed into our daily programming activities. Read More...