I think it would be good for memory if the different views like CListView, CGridView etc would unset the data once it is used. Good for memory management I think?
Example:
public function renderItems()
{
echo CHtml::openTag($this->itemsTagName,array('class'=>$this->itemsCssClass))."\n";
$data=$this->dataProvider->getData();
if(count($data)>0)
{
$owner=$this->getOwner();
$render=$owner instanceof CController ? 'renderPartial' : 'render';
foreach($data as $i=>$item)
{
$data=$this->viewData;
$data['index']=$i;
$data['data']=$item;
$data['widget']=$this;
$owner->$render($this->itemView,$data);
unset($data);
}
}
else
$this->renderEmptyText();
echo CHtml::closeTag($this->itemsTagName);
}
Thanks!