Use new "matrix diff" stuff, although it doesn't make a huge difference
Speed up matrix index->join cost index hash creation
remove profiler stuff so it actually compiles