[erlang-questions] naive execution of guards

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Tue Dec 12 18:54:02 CET 2006


Kostis wrote:
 

> Even some of the OTP code would benefit from it.
> 
[...]
> lib/megaco/src/text/megaco_text_parser_prev3a.hrl:  when 
> length(Hex4) =< 4, length(Hex4) > 0 ->
> lib/megaco/src/text/megaco_text_parser_prev3b.hrl:  when 
> length(Hex4) =< 4, length(Hex4) > 0 ->
> lib/megaco/src/text/megaco_text_parser_prev3c.hrl:  when 
> length(Hex4) =< 4, length(Hex4) > 0 ->
[...]

It should perhaps also be noted that the megaco parser
is highly performance-critical code, as are all parsers
for these modern, text-based tele- and datacom protocols.

BR,
Ulf W




More information about the erlang-questions mailing list