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
parent
c78e2a6213
commit
7a53fe1cf9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue