From: Richard Jones <rich@annexia.org>
To: tmp123@menta.net
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] caml: camlp4 revised syntax
Date: Mon, 16 Jul 2007 17:40:31 +0100 [thread overview]
Message-ID: <20070716164031.GA26691@furbychan.cocan.org> (raw)
In-Reply-To: <4699FB8A.2020504@menta.net>
On Sun, Jul 15, 2007 at 12:48:42PM +0200, tmp123@menta.net wrote:
> 1) The internal integer coding:
>
> It seems that an integer of value "x" is internally stored like "2x*1" (
> x shift 1 or 1 ). That is a loss of performance, not only when doing
> calculations, but also, by example, when using the integer as index of a
> string character, ... . Usage of native-int doesn't improves the subject.
The cost is not as great as you think:
http://caml.inria.fr/pub/ml-archives/caml-list/2004/07/e86a25aa6c6a6a7d08dd7eb50cfd5d52.en.html
You also need to take into account the benefit of this representation
in other areas (eg. the GC). Let's see you compare the performance of
real programs before jumping to conclusions.
Rich.
--
Richard Jones
Red Hat
next prev parent reply other threads:[~2007-07-16 16:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7.1184494090.1020.caml-list@yquem.inria.fr>
2007-07-15 10:48 ` tmp123
2007-07-15 11:42 ` unboxed scalars - was [Caml-list] " Basile STARYNKEVITCH
2007-07-15 13:16 ` Gerd Stolpmann
2007-07-15 17:50 ` Christophe Raffalli
2007-07-16 16:40 ` Richard Jones [this message]
2007-07-17 3:08 ` Jon Harrop
2007-07-21 11:31 ` dml tmp123
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=20070716164031.GA26691@furbychan.cocan.org \
--to=rich@annexia.org \
--cc=caml-list@yquem.inria.fr \
--cc=tmp123@menta.net \
/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