[erlang-questions] regexp is slow

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Tue Nov 7 09:15:32 CET 2006


Robert Virding wrote:
>
> > Well, the HiPE team's byte_array to the rescue then, eh?  ;-)
> 
> The problem is that any array representation is not right, 
> you get a large amount of byte shifting which is costly. For 
> example the first pass is a substitution which removes all 
> newlines and some specific lines.

Yeah, I know. Limiting regexp to only same-length substitutions
probably wouldn't go over so well.  (:

/U




More information about the erlang-questions mailing list