From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 6CB14BC57 for ; Thu, 29 Apr 2010 20:34:07 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0DAHtu2UvRVdrgkGdsb2JhbACQQi+BWIo/CBUBAQEBCQkMBxEDH60ygXyFTy6ITgEBAwWFCwSDNw X-IronPort-AV: E=Sophos;i="4.52,296,1270418400"; d="scan'208";a="58170151" Received: from mail-bw0-f224.google.com ([209.85.218.224]) by mail1-smtp-roc.national.inria.fr with ESMTP; 29 Apr 2010 20:34:07 +0200 Received: by bwz24 with SMTP id 24so15375555bwz.17 for ; Thu, 29 Apr 2010 11:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Q3LYnAmR1oVTNwn5qPk/UCn2hjdEy6Qgx8iAzxS4+q4=; b=CNki8KmaEFx5tPpObBjHfWWllxV8zXPrrAvAKPKbm7a3CS1TBpo5qea+2g203WdAQi 7YFVEDjZYLsFUvBj/SmRA9Je4b7S1dRVhvSguddLGw2lKzDCMYPUz8qfpG4u/xatFssP D2otJgGnExRGPF4+2y6R6Jb7/2PMKBoQHFlhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Oao4s5uV36hcRPPkClW1aLF7y5CqH+T2TFknIlMfnd7+rC0Z9/xpTbUMMcIcvdfJa8 RJ0zGN11ghM7DnRnRcv+vKNmXmHziFMj3HPVoKOpljC3RTAsy+Y/i4/gB+6GCKK77pjs OAGkFyPoWVRiU3hxcN1sFnov9wFjjlPxstGSI= MIME-Version: 1.0 Received: by 10.204.152.140 with SMTP id g12mr6207240bkw.130.1272566046831; Thu, 29 Apr 2010 11:34:06 -0700 (PDT) Received: by 10.204.25.211 with HTTP; Thu, 29 Apr 2010 11:34:06 -0700 (PDT) Date: Thu, 29 Apr 2010 21:34:06 +0300 Message-ID: Subject: min function, why is it so slow? From: Eray Ozkural To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; eray:01 ozkural:01 inlining:01 ocamlopt:01 -inline:01 inlined:01 util:01 inlining:01 eray:01 ozkural:01 bilkent:01 inline:01 define:02 defined:02 groups:02 Hello there, Although I turn on inlining in ocamlopt (-inline 10), I think that the min function is not quite inlined. Indeed, it's faster if I just inline it myself (if a