This code show some speed, but then I changed my demo app with tower of Hanoi, where I have a timer for newlisp-execution time
I get a speed improvment from ca.940ms to 15ms. That's from waiting a second to immediately. Whow!
If all strings to be written are already available in a list then 'append', 'join' or 'string' is fine, but if not then 'write-buffer' with string device is better.
Also note that 'string' is much slower then 'append', because it also converts from non-string to string, while append assumes, that all args are strings.
Also when you use string on a known type, i.e.:
(string lastname "," age)
where you know that age will always be a number than it is 3 times faster to do: