Files
sdk/runtime/bin
Jens Johansen 014a5bc678 Replace strstr with strncmp looking for path separator
Using strstr in a loop is O(n^2) with n being the length of the path,
whereas using strncmp is O(n*m) with n being the length of the path
and m is the length of the separator (which is always 1).
Effectively this turns the quadratic behavior linear.

Change-Id: If60d02c33eeca92ca2ff52e0df97d0bb80fe57e0
Reviewed-on: https://dart-review.googlesource.com/62144
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-06-26 09:31:09 +00:00
..
2018-01-18 16:38:54 +00:00
2018-05-03 17:59:44 +00:00
2017-03-15 13:11:05 -07:00
2017-03-20 08:47:39 -07:00
2018-06-06 16:47:05 +00:00
2017-08-30 09:34:36 -07:00
2017-08-24 11:17:52 -07:00
2017-08-24 11:17:52 -07:00
2017-03-15 13:11:05 -07:00
2017-03-15 13:11:05 -07:00
2017-03-15 13:11:05 -07:00
2017-10-09 19:31:40 +00:00