calendar view memory optimization.