HomePhorge

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
Bob TrahanAuthored on Aug 13 2012, 6:02 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP6ce39db6ca39: Add ID to Pending Differential Revisions panel
Branches
Unknown
Tags
Unknown

Event Timeline