Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of String.prototype.includes
Summary: Our current implmentation extracts every substring (of the source string) that matches the length of the search string and check to see if any of them match. This change just does one `std::search` of the search string in the source string. Reviewed By: avp Differential Revision: D18359912 fbshipit-source-id: 24ce96f777aab2e0e6ab789f59c1be5030002dbc
- Loading branch information