> On Wed, May 2, 2012 at 10:39 AM, Lauri Kasanen <[email protected]> wrote: > > Did some profiling with OProfile, and found two places where easy gains > > could be had. > > > > What are the steps to reproduce to have a string search with length = 0 ?
This function is called without giving the haystack length: int mk_string_search(const char *haystack, const char *needle, int sensitive) Using the well-optimized string functions from the system work for that case. There isn't a string search with a max length in the standard library, so they can't be used for the case where the user gives max search length (mk_string_search_n). - Lauri _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
