[cp-layout-generator] Reduce layout load
[cp-layout-generator] Reduce layout load

Reduce the amount of work done when building the layout by
only considering the last few lines of the grid when laying out
an item. This significantly improves performance, at the expense
of more gaps in the layout.

01org/nlpljs,01org/nlpljs