[erlang-questions] IO efficiency

Mark Selby mark@REDACTED
Sun May 3 03:34:16 CEST 2009

Hi all,

I'm using webmachine, and operating over a tree (node, {id, name, 
children = []}).

As far as output goes, appending recursively to a list seems to make 
sense, as it contains the output in the right order. Just keep a depth 
flag going to achieve indented output.

Should I really be rethinking the schema so that the list is in a 
tail-recursive friendly order instead? Or can I 
io:just_write_to_the_browser_now(Str) in some straightforward way?



More information about the erlang-questions mailing list