Issue 20 in ocaml-extlib: String.starts_with and ends_with use String.sub

7 views
Skip to first unread message

codesite...@google.com

unread,
Aug 5, 2011, 9:08:36 AM8/5/11
to ocaml-extlib-...@googlegroups.com
Status: Accepted
Owner: ygrekher...@gmail.com
Labels: Milestone-Release1.6 Type-Enhancement Performance

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.

codesite...@google.com

unread,
Aug 6, 2011, 10:50:34 AM8/6/11
to ocaml-extlib-...@googlegroups.com
Updates:
Status: Fixed
Labels: -Milestone-Release1.6

Comment #1 on issue 20 by ygrekher...@gmail.com: String.starts_with and

Fixed in r389.
Implemention with recursive loop gives 4x speed-up.

Reply all
Reply to author
Forward
0 new messages