Ulf Wiger etxuwig@REDACTED
Mon Sep 2 10:11:10 CEST 2002

On Fri, 30 Aug 2002, Mikael Karlsson wrote:

>The reason why I like the idea about one single pass was that I
>had a vague idea of using xmerl + yaws to export/publish XML
>documents written in the Simplified DocBook DTD on the fly. So I
>was i bit biased towards performance.

One or two extra passes may not even be noticeable. The whole
area of performance is tricky, and to really find out what
affects it the most, you usually need to experiment and measure.

You can, for example, get worse performance by doing everything
in a single pass, if it means using complex functions or deep
function call chains that make life difficult for the garbage
collector and stack management -- not to mention the fact that it
really messes with the readability of your code as well.


Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson Telecom AB, ATM Multiservice Networks

More information about the erlang-questions mailing list