File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -359,9 +359,14 @@ fn erl_split(a: String, b: String) -> List(String)
359
359
360
360
/// Creates a new `String` by joining two `String`s together.
361
361
///
362
- /// This function copies both `String`s and runs in linear time. If you find
363
- /// yourself joining `String`s frequently consider using the [`string_tree`](../gleam/string_tree.html)
364
- /// module as it can append `String`s much faster!
362
+ /// This function typically copies both `String`s and runs in linear time, but
363
+ /// the exact behaviour will depend on how the runtime you are using optimises
364
+ /// your code. Benchmark and profile your code if you need to understand its
365
+ /// performance better.
366
+ ///
367
+ /// If you are joining together large string and want to avoid copying any data
368
+ /// you may want to investigate using the [`string_tree`](../gleam/string_tree.html)
369
+ /// module.
365
370
///
366
371
/// ## Examples
367
372
///
You can’t perform that action at this time.
0 commit comments