Minor memory improvement
This commit is contained in:
parent
177a362f38
commit
715b50a77c
|
|
@ -316,6 +316,7 @@ class ReferenceHelper
|
||||||
$objColumnDimension->setColumnIndex($newReference);
|
$objColumnDimension->setColumnIndex($newReference);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$worksheet->refreshColumnDimensions();
|
$worksheet->refreshColumnDimensions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -339,6 +340,7 @@ class ReferenceHelper
|
||||||
$objRowDimension->setRowIndex($newRoweference);
|
$objRowDimension->setRowIndex($newRoweference);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$worksheet->refreshRowDimensions();
|
$worksheet->refreshRowDimensions();
|
||||||
|
|
||||||
$copyDimension = $worksheet->getRowDimension($beforeRow - 1);
|
$copyDimension = $worksheet->getRowDimension($beforeRow - 1);
|
||||||
|
|
|
||||||
|
|
@ -658,10 +658,8 @@ class Worksheet implements IComparable
|
||||||
*/
|
*/
|
||||||
public function refreshColumnDimensions()
|
public function refreshColumnDimensions()
|
||||||
{
|
{
|
||||||
$currentColumnDimensions = $this->getColumnDimensions();
|
|
||||||
$newColumnDimensions = [];
|
$newColumnDimensions = [];
|
||||||
|
foreach ($this->getColumnDimensions() as $objColumnDimension) {
|
||||||
foreach ($currentColumnDimensions as $objColumnDimension) {
|
|
||||||
$newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension;
|
$newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -677,10 +675,8 @@ class Worksheet implements IComparable
|
||||||
*/
|
*/
|
||||||
public function refreshRowDimensions()
|
public function refreshRowDimensions()
|
||||||
{
|
{
|
||||||
$currentRowDimensions = $this->getRowDimensions();
|
|
||||||
$newRowDimensions = [];
|
$newRowDimensions = [];
|
||||||
|
foreach ($this->getRowDimensions() as $objRowDimension) {
|
||||||
foreach ($currentRowDimensions as $objRowDimension) {
|
|
||||||
$newRowDimensions[$objRowDimension->getRowIndex()] = $objRowDimension;
|
$newRowDimensions[$objRowDimension->getRowIndex()] = $objRowDimension;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue