Re: [MLton-commit] r6639

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [MLton-commit] r6639

by Matthew Fluet-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 4 Jun 2008, Vesa Karvonen wrote:

> Better options.
> ----------------------------------------------------------------------
>
> U   mltonlib/trunk/org/mlton/vesak/toys/ant/serial/Makefile
>
> ----------------------------------------------------------------------
>
> Modified: mltonlib/trunk/org/mlton/vesak/toys/ant/serial/Makefile
> ===================================================================
> --- mltonlib/trunk/org/mlton/vesak/toys/ant/serial/Makefile 2008-06-04 17:40:25 UTC (rev 6638)
> +++ mltonlib/trunk/org/mlton/vesak/toys/ant/serial/Makefile 2008-06-04 18:15:45 UTC (rev 6639)
> @@ -8,6 +8,6 @@
>
> root := ../../../../../..
>
> -mlton-opts := -const 'MLton.safe false' -const 'MLton.detectOverflow false' -loop-passes 2
> +mlton-opts := -align 8 -loop-passes 16

I could believe that '-loop-passes 2' helps, but '-loop-passes 16' would
be extreme.  Just getting lots of inlining?


_______________________________________________
MLton mailing list
MLton@...
http://mlton.org/mailman/listinfo/mlton

Re: Re: [MLton-commit] r6639

by Vesa Karvonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 5, 2008 at 12:42 AM, Matthew Fluet <fluet@...> wrote:
> On Wed, 4 Jun 2008, Vesa Karvonen wrote:
[...]
>> Better options.
[...]
>> -mlton-opts := -const 'MLton.safe false' -const 'MLton.detectOverflow false' -loop-passes 2
>> +mlton-opts := -align 8 -loop-passes 16
>
> I could believe that '-loop-passes 2' helps, but '-loop-passes 16' would be
> extreme.  Just getting lots of inlining?

That is just my laziness.  :-)  It is such a small program that 16
passes goes by quickly and I didn't want to spend time looking for the
optimal number of passes.  I also accidentally forgot the unsafe
options that I tried to see how much speedup they would give.   ...I
did some more testing and it seems that the program doesn't change
much after 4 passes.  However, there are differences between 1, 2, 3,
and 4 passes.

-Vesa Karvonen

_______________________________________________
MLton mailing list
MLton@...
http://mlton.org/mailman/listinfo/mlton
LightInTheBox - Buy quality products at wholesale price