Concatenating atoms

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Thu Feb 3 16:57:09 CET 2005


Joe wrote:

> *Every* parser which accepts inputs from a communication 
> channel suffers from this
> problem is the set of atoms that it can create is unbounded.


>   This gives us a number of design choices.
> 
> 	1) Accept that I have incorrect implementation that 
> will one day crash
> 	2) Prove that the atom table cannot overflow because 
> the alphabet is
> 	   finite and will not overflow the atom table
> 	3) Uses strings instead of atoms


This might be a good time to point out that xmerl
converts element and attribute names to atoms.

I've seen complaints on the list that xmerl is slow.
All other things being equal, switching over to using
strings instead would slow it down considerably
(not that I've measured this).

/Uffe



More information about the erlang-questions mailing list