HiPE compilation gives NINE times speed increase!

Peter-Henry Mander erlang@REDACTED
Mon Jan 17 13:22:12 CET 2005

Hi Matthias,

I have to agree that the try-catch stuff is uglier *and* slower in both
native and non-native compilation. I'll avoid it in future.

Thanks for the lesson, Guru.

Pete, now wearing the "L" teeshirt again, although Mattias may insist on
me wearing the "D" cap and standing face in a corner!


On Mon, 17 Jan 2005 12:15:48 +0100
Matthias Lang <matthias@REDACTED> wrote:

> Kostis Sagonas writes:
>  > The speedup you get in this program is indeed more than average but is
>  > not so surprising. We've put quite some effort in efficiently compiling
>  > binaries to native code, the compiler optimizations that HiPE performs
>  > are quite effective in such code, and we've experienced similar speedups
>  > in some programs manipulating binaries.  On the other hand try-catch has
>  > nothing to do with the speedup; it is entirely due to HiPE's compilation
>  > of binaries.
> Replacing the (hideous, IMO) try/catch stuff with some normal code
> nets me a 3.5x speedup for BEAM and a 2x speedup for HIPE. Peak memory
> use is also much less, under 100MB.
> Assuming I didn't make a mistake, that is.
> Matthias

"The Tao of Programming
 flows far away 
 and returns 
 on the wind of morning."

More information about the erlang-questions mailing list