[m-rev.] for review: work around slow hipe compilation

Peter Wang wangp at students.csse.unimelb.edu.au
Mon Jul 2 15:32:34 AEST 2007


On 2007-07-02, Peter Wang <wangp at students.csse.unimelb.edu.au> wrote:
> On 2007-06-29, Peter Wang <wangp at students.csse.unimelb.edu.au> wrote:
> > Estimated hours taken: 5
> > Branches: main
> > 
> > compiler/erl_code_gen.m:
> > 	The HiPE compiler is extremely slow compiling functions containing long
> > 	case statements involving strings.  Workaround: for a string switch
> > 	with many cases, convert the string to an atom and switch on atoms
> > 	instead.
> 
> I forgot that Erlang atoms are limited in length, so this workaround
> should be explicitly enabled by the user.  Interdiff follows.
> 

Committed this.  It should not affect anyone else.

Peter
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list