Purposefully mangling arrays of structs

It’s a pretty common scenario to have an array of some structs, where you frequently iterate through the array using only one field in the struct. This is a cache nightmare – memory is loaded into cache sequentially by prefetching, meaning you’re wasting all that bandwidth loading all the other fields of the struct that… Read more

Real-time backup

An idea I had a while ago was to implement a real-time backup system, which saves copies of files as they’re modified to a 2nd location. In the simplest form this would be a kind of manual mirrored RAID setup, which could work at the directory or volume level rather than disk level. The problem… Read more