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

@@ -143,7 +143,9 @@ class FileBasedStrategy implements CachingStrategyInterface
}
$sharedString = null;
if (array_key_exists($indexInFile, $this->inMemoryTempFileContents)) {
// Using isset here because it is way faster than array_key_exists...
if (isset($this->inMemoryTempFileContents[$indexInFile])) {
$escapedSharedString = $this->inMemoryTempFileContents[$indexInFile];
$sharedString = $this->unescapeLineFeed($escapedSharedString);
}