Skip to content

Why use string_tree.append() over string.append(), if the latter is faster? #4704

Closed Answered by lpil
Aquabbas asked this question in Questions & support
Discussion options

You must be logged in to vote

Hello! There's documentation on when to use string tree in its module. https://hexdocs.pm/gleam_stdlib/gleam/string_tree.html#StringTree

It's always good to benchmark your code when optimising the hot-path as which is better will depend on what your code does.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Aquabbas
Comment options

Answer selected by Aquabbas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants