HomePhabricator

strncmp is better than strpos

Description

strncmp is better than strpos

Summary: no need to get all O(N) up in this when we can do constant time of "8"

Test Plan: arc lint

Reviewers: vrana, epriestley

Reviewed By: vrana

CC: aran, Korvin

Maniphest Tasks: T891

Differential Revision: https://secure.phabricator.com/D3271

Details

Provenance
btrahanAuthored on
Reviewer
vrana
Differential Revision
Restricted Differential Revision
Parents
rP6ce39db6ca39: Add ID to Pending Differential Revisions panel
Branches
Unknown
Tags
Unknown

Event Timeline