more info on in-place optimizations