Instead of always returning a `String` (which forces a large allocation), change functions to take a `W: Write` argument. This allows writing directly to a file, socket, or buffer, lowering memory overhead.
Instead of always returning a
String(which forces a large allocation), change functions to take aW: Writeargument.This allows writing directly to a file, socket, or buffer, lowering memory overhead.