caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: aborquez@altavista.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] partial function application perfomance
Date: Mon, 03 Dec 2001 10:11:38 +0900	[thread overview]
Message-ID: <20011203101138O.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20011203001103.15717.cpmta@c016.snv.cp.net>

From: Arturo Borquez <aborquez@altavista.com>
> I've being doing some benchmarks, and one of my tests
> measures partial function application perfomance. I was
> surprised by results: 20+ times slower than a full
> function application. I expected a greater time but 20 
> times is a lot more ... I've checked my program and
> seems ok, indeed the results were correct. Is this
> overhead normal to partial function applications?

Can you post your code?
If your function is small enough, full application may result in
inlining, and a null cost. If you succeded in having your partial
application have some cost (by doing something which prohibits
inlining), the ratio may be arbitrarily large!

Jacques Garrigue
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-12-03  1:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-03  0:11 Arturo Borquez
2001-12-03  1:11 ` Jacques Garrigue [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011203101138O.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=aborquez@altavista.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).