Use of empty() rather than count() to test if arrays are empty or not - simple performance tweak... empty() is over twice as fast as count()

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85344 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker
2012-01-16 12:34:22 +00:00
parent ac37b8ae8d
commit 24a9eb285c
23 changed files with 56 additions and 56 deletions
@@ -171,7 +171,7 @@ class PHPExcel_CachedObjectStorage_CacheBase {
$row[$r] = $r;
$col[$c] = strlen($c).$c;
}
if (count($row) > 0) {
if (!empty($row)) {
// Determine highest column and row
$highestRow = max($row);
$highestColumn = substr(max($col),1);