Arquivos
hhvm/hphp/test/vm/get_class_constants.php.exp
T
bmaurer 2fb7b0e279 Avoid lookup during get_class_constants
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.
2013-03-08 19:13:06 -08:00

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
}