Minor performance tweaks

This commit is contained in:
Mark Baker 2013-06-17 12:01:51 +01:00
parent 98e5ac2b24
commit da7cd71be8

View File

@ -1176,7 +1176,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$this->_cachedHighestColumn = $aCoordinates[0]; $this->_cachedHighestColumn = $aCoordinates[0];
$this->_cachedHighestRow = max($this->_cachedHighestRow, $aCoordinates[1]); $this->_cachedHighestRow = max($this->_cachedHighestRow, $aCoordinates[1]);
// Cell needs appropriate xfIndex // Cell needs appropriate xfIndex from dimensions records
// but don't create dimension records if they don't already exist
$rowDimension = $this->getRowDimension($aCoordinates[1], FALSE); $rowDimension = $this->getRowDimension($aCoordinates[1], FALSE);
$columnDimension = $this->getColumnDimension($aCoordinates[0], FALSE); $columnDimension = $this->getColumnDimension($aCoordinates[0], FALSE);
@ -1192,7 +1193,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
} }
/** /**
* Cell at a specific coordinate exists? * Does the cell at a specific coordinate exist?
* *
* @param string $pCoordinate Coordinate of the cell * @param string $pCoordinate Coordinate of the cell
* @throws PHPExcel_Exception * @throws PHPExcel_Exception