adsr / phpspy

low-overhead sampling profiler for PHP 7+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempt hash lookup in `copy_zarray`

adsr opened this issue · comments

commented

When looking for a single key, instead of iterating over the entire array, we can try hashing the string the same way PHP does and know what index to look at.