Various speed improvements

This commit is contained in:
Adrien Loison committed 2015-11-12 13:55:25 -08:00
1 parent cb5dae22e4
commit f55520661e
7 files changed
+65 -40

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ class SheetIterator implements IteratorInterface
*/
public function next()
{
if (array_key_exists($this->currentSheetIndex, $this->sheets)) {
// Using isset here because it is way faster than array_key_exists...
if (isset($this->sheets[$this->currentSheetIndex])) {
$currentSheet = $this->sheets[$this->currentSheetIndex];
$currentSheet->getRowIterator()->end();