janestreet / base

Standard library for OCaml
MIT License
860 stars 125 forks source link

Small optimization for Set.add #103

Closed sangwoo-joh closed 3 years ago

sangwoo-joh commented 3 years ago

Thanks for the great library. This fix could avoid two branch expressions in bal, because it is already balanced for Leaf case. Please review this change. Thank you.

aalekseyev commented 3 years ago

Thanks for your contribution. This change was merged in d5c241f. Sorry, I did things in the wrong order, so your commit is shown as empty now, but the change is in.