[erlang-bugs] out of memory and crash when using linebuf io

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Tue Aug 5 11:10:48 CEST 2008


Fredrik Svahn skrev:

> PS. So how did the new re library match up to grep with the above
> patch? Quite well I would say. Almost two minutes faster than grep
> (using the mmap option to grep only made a few seconds difference).
> Even though I knew re was fast from previous experiments I was quite
> pleasantly surprised. It is still using more memory than grep, for
> sure, but still, I am willing to make that trade-off in this case.

Pretty impressive payoff for 11 extra lines of code.  (:

I think that in practice, it should usually be a result of very
poor design to have the receiving process also handle large
amounts of messages from other sources.

BR,
Ulf W



More information about the erlang-bugs mailing list