Posts
When performance guarantees hurts performance - std::visit
December 22, 2018•1,096 words
The performance of came up in a discussion, and my first thought was that from reading generated assembly code, it's a jump table, so it should be...
How to speak at a conference
November 29, 2018•1,142 words
A former colleague of mine recently described the steps to speak at a conference as: Write a proposal and (optionally) a talk outline. Get accepted...
DRY multicomparisons
July 14, 2018•991 words
Now and then, I find myself writing something like if (x == a || x == b || x == c) ... , and every time the repetition of x == annoys me. A number ...
Performance of flat maps
August 7, 2017•1,967 words
A flat map is a data structure that maps a key to a value, and that stores the data in a compact flat memory structure to get better cache hit rate...
constexpr quicksort in C++17
June 3, 2017•717 words
So I've written about compile time quick sort twice before ( 2011 and 2015 ,) but now when C++17 support is becoming available, I thought I'd try i...
Higher order functions as an enabler for lazy evaluation
January 8, 2017•1,465 words
Yesterday's post about Generating lambdas for clarity and performance showed how to make use of higher order functions to improve clarity while giv...