Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #4046 Token - Added fast isset() path to token->equals() (staabm)
This PR was merged into the 2.12 branch. Discussion ---------- Token - Added fast isset() path to token->equals() looking up the existance of a property via isset() is waaaaay faster then array_key_exists(). we still need array_key_exists() as a fallback, when properties exist with a null-value to work properly. this case is very rare, therefore this can be considered a speedup. this change speeds up php-cs-fixer by 5.6%. ![image](https://user-images.githubusercontent.com/120441/46920181-bd4c6f00-cfea-11e8-8145-069ff58f63c4.png) Commits ------- 577a46a Added fast isset() path to token->equals()
- Loading branch information