2fb7b0e279
Noticed this in perf, maybe I'm missing something obvious but it seemed like there was a pretty easy way to avoid an extra hashtable lookup during get_class_constants This shows up because the Enum class call this method once per enum the first time isValid is call. Might be worth doing something to make this even more efficient, but seems like an easy win.
13 linhas
159 B
Plaintext
13 linhas
159 B
Plaintext
array(5) {
|
|
["DYNAMIC_VAL"]=>
|
|
int(2)
|
|
["STRING_VAL"]=>
|
|
string(3) "zzz"
|
|
["INT_VAL"]=>
|
|
int(105)
|
|
["FP_VAL"]=>
|
|
float(3.14)
|
|
["NULL_VAL"]=>
|
|
NULL
|
|
}
|