I've been learning how to use Massif, a tool in valgrind for memory profiling. It quickly paid off! I discovered that difftastic sometimes attempts to preallocate absurd amounts of memory.