Compile Time Hashes in C - Revisied

Hashing strings in c++ at compile time has been possible since c++11 but is it worth doing? Me and a few colleagues was discussed this over a few beers and it reminded me that I have already written about it here (8 years ago… ARGH I’m getting old!). But a lot of time has passed since I wrote that… and I didn’t make any measurements in that article! shame! SHAME I SAY!

Read More

Swapping memory and compiler optimizations

During my vacation for the holidays I thought that maybe I wanted some smaller project that you could fit in together with “family life” (not the easiest of endeavour!) and I got to think about some old code that I had laying about in my own little game-engine that I have thought about making public for a while. I thought it might be useful for someone else and maybe just doing some optimization work on it might be a fun little distraction!

Read More

When memcpy() change!

To start of, yes, I know that this article touch undefined behavior and that all bets are off! I am currently working on a bigger post on swapping memory that is THIS close to being done… any day now (he has been saying the last year!). However this topic popped up and I was wondering if it was worth making the other post longer or just make a small one about it.

Read More