File tree 2 files changed +3
-5
lines changed
src/PhpSpreadsheet/Collection
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
20
20
- Fix VLOOKUP with exact matches - [ #809 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/809 )
21
21
- Support COUNTIFS multiple arguments - [ #830 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/830 )
22
22
- Change ` libxml_disable_entity_loader() ` as shortly as possible - [ #819 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/819 )
23
+ - Improved memory usage and performance when loading large spreadsheets - [ #822 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/822 )
23
24
24
25
## [ 1.5.2] - 2018-11-25
25
26
Original file line number Diff line number Diff line change @@ -495,15 +495,12 @@ public function __destruct()
495
495
/**
496
496
* Returns all known cache keys.
497
497
*
498
- * @return string[]
498
+ * @return \Generator| string[]
499
499
*/
500
500
private function getAllCacheKeys ()
501
501
{
502
- $ keys = [];
503
502
foreach ($ this ->getCoordinates () as $ coordinate ) {
504
- $ keys [] = $ this ->cachePrefix . $ coordinate ;
503
+ yield $ this ->cachePrefix . $ coordinate ;
505
504
}
506
-
507
- return $ keys ;
508
505
}
509
506
}
You can’t perform that action at this time.
0 commit comments