Mark the String.equal external as not-allocating C.

It is indeed a mere loop that does not allocate. This function was probably
forgotten because its code was hidden deep in the module.
master
Pierre-Marie Pédrot 2018-11-21 11:43:08 +01:00
parent c78e2a6213
commit 7a53fe1cf9
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ let uncapitalize_ascii s =
type t = string
let compare (x: t) (y: t) = Stdlib.compare x y
external equal : string -> string -> bool = "caml_string_equal"
external equal : string -> string -> bool = "caml_string_equal" [@@noalloc]
let split_on_char sep s =
let r = ref [] in