From lurker-index@localhost Thu Jun 05 00:40:20 2008
Return-Path: <mlton-bounces@mlton.org>
X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on 
	mail.terpstra.ca
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,
	FORGED_RCVD_HELO autolearn=ham version=3.1.7-deb
X-Original-To: wesley@terpstra.ca
Delivered-To: wesley@terpstra.ca
Received: from mail.terpstra.ca (localhost [127.0.0.1])
	by mail.terpstra.ca (Postfix) with ESMTP id 6CADB80015
	for <wesley@terpstra.ca>; Thu,  5 Jun 2008 00:40:05 +0200 (CEST)
Received: from mlton.org (mail.sweeks.com [69.55.226.86])
	by mail.terpstra.ca (Postfix) with ESMTP id 0F9FD80001
	for <wesley@terpstra.ca>; Thu,  5 Jun 2008 00:39:53 +0200 (CEST)
Received: from localhost.johncompanies.com ([127.0.0.1] helo=mlton.org)
	by mlton.org with esmtp (Exim 4.50)
	id 1K41dw-0002bU-Rc; Wed, 04 Jun 2008 15:39:45 -0700
Received: from fg-out-1718.google.com ([72.14.220.155])
	by mlton.org with esmtp (Exim 4.50) id 1K41du-0002bO-5n
	for mlton@mlton.org; Wed, 04 Jun 2008 15:39:42 -0700
Received: by fg-out-1718.google.com with SMTP id 22so183646fge.1
	for <mlton@mlton.org>; Wed, 04 Jun 2008 15:39:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to
	:subject:cc:in-reply-to:mime-version:content-type
	:content-transfer-encoding:content-disposition:references;
	bh=+BI97pBiETtjN9tzRbdbucGU391tcLMyB6EqYF4g93U=;
	b=rP08mP1bGHY8ugZXEUPBr+oFAVZfadW4fSOKgJqkxHMxDWB+YDsnBzL1lYykz8pdv+
	DanNfkffqjRuvODxzWTLb0k2VjniJG7GRvEyLHedNZDqOcKGh6D1ObLFvfL0YP7VYVfc
	DzePsefwOgVecLMd4YnOARV9yBvUhhAOKILG0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
	:content-type:content-transfer-encoding:content-disposition
	:references;
	b=pigjm4qzZmp2gzwtseIZSU9QLch+KZaPPOFOr/aG8xCJHyAcFnOGr0dnBkn072T2Of
	j1hoLpCFdWt2kSdhghUopDXv2BLJ9aCOnp7TyR3zDn8W1O5yfvoZROwfUyFKtNxm5FCR
	S8/HS9POrTeNjOypUGF8ryPJN3MVziI1nsajY=
Received: by 10.82.116.15 with SMTP id o15mr39622buc.75.1212619180235;
	Wed, 04 Jun 2008 15:39:40 -0700 (PDT)
Received: by 10.82.111.20 with HTTP; Wed, 4 Jun 2008 15:39:40 -0700 (PDT)
Message-ID: <9e43b9a0806041539s78fd52c7q59ffaf5923761ca7@mail.gmail.com>
Date: Thu, 5 Jun 2008 01:39:40 +0300
From: "Vesa Karvonen" <vesa.a.j.k@gmail.com>
To: "Matthew Fluet" <fluet@tti-c.org>
Subject: Re: [MLton] Re: [MLton-commit] r6639
In-Reply-To: <Pine.LNX.4.64.0806041641280.6343@nagoya.uchicago.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <E1K3xWU-00037P-Ky@mlton.org>
	<Pine.LNX.4.64.0806041641280.6343@nagoya.uchicago.edu>
Cc: mlton@mlton.org
X-BeenThere: mlton@mlton.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: mlton.mlton.org
List-Unsubscribe: <http://mlton.org/mailman/listinfo/mlton>,
	<mailto:mlton-request@mlton.org?subject=unsubscribe>
List-Archive: <http://mlton.org/pipermail/mlton>
List-Post: <mailto:mlton@mlton.org>
List-Help: <mailto:mlton-request@mlton.org?subject=help>
List-Subscribe: <http://mlton.org/mailman/listinfo/mlton>,
	<mailto:mlton-request@mlton.org?subject=subscribe>
Sender: mlton-bounces@mlton.org
Errors-To: mlton-bounces@mlton.org

On Thu, Jun 5, 2008 at 12:42 AM, Matthew Fluet <fluet@tti-c.org> 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@mlton.org
http://mlton.org/mailman/listinfo/mlton


