@yoyonel ,
here is an article about some basic optimization.
http://www.opengis.ch/2015/04/29/performance-for-mass-updating-features-on-layers/
Maybe we could use something like that to group our auto-save rectangles, so as to not use several undos/redos.