New issue 20 by ygrekher...@gmail.com: String.starts_with and ends_with use
String.sub
http://code.google.com/p/ocaml-extlib/issues/detail?id=20
This means extra allocation and throw-away data copy. Presumably direct
byte-by-byte comparison should be faster.
Comment #1 on issue 20 by ygrekher...@gmail.com: String.starts_with and
ends_with use String.sub
http://code.google.com/p/ocaml-extlib/issues/detail?id=20
Fixed in r389.
Implemention with recursive loop gives 4x speed-up.