# String manipulation efficiency

,

String concatenation can be done with paste, paste0, sprintf, or .Internal(sprintf).

## sprintf vs paste

There’s not much difference in performance among these options.

## sprintf vs .Internal(sprintf)

Replacing sprintf by .Internal(sprintf) results in a small gain in performance, which can turn out to be significant if the operation is repeated a lot.