1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Add descriptive comments about storage performance

This commit is contained in:
Matthew Brown 2018-01-21 10:53:17 -05:00
parent 9b6b03ff9f
commit f4a9306eee
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,11 @@ use Psalm\Storage\ClassLikeStorage;
class ClassLikeStorageProvider
{
/** @var array<string, ClassLikeStorage> */
/**
* Storing this statically is much faster (at least in PHP 7.2.1)
*
* @var array<string, ClassLikeStorage>
*/
private static $storage = [];
/**

View File

@ -7,6 +7,7 @@ class FileStorageProvider
{
/**
* A list of data useful to analyse files
* Storing this statically is much faster (at least in PHP 7.2.1)
*
* @var array<string, FileStorage>
*/