From: David House <dhouse@janestreet.com>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: "Török Edwin" <edwin+ml-ocaml@etorok.net>,
"caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] The verdict on "%identity"
Date: Mon, 19 Nov 2012 18:28:32 +0000 [thread overview]
Message-ID: <CAK=fH+hLkJXqe_A-ux5T4Yu4c2DR3QdY9NK7xLxDJmz7K+6Y+w@mail.gmail.com> (raw)
In-Reply-To: <1353349126.4420.YahooMailNeo@web111512.mail.gq1.yahoo.com>
If you wanted to investigate this yourself, you could compile with -S
and look at the generated assembly. For such short functions, this is
generally not very hard.
On Mon, Nov 19, 2012 at 6:18 PM, Dario Teixeira <darioteixeira@yahoo.com> wrote:
> Hi,
>
>> Wouldn't 'type t = private string' help the compiler optimize this?
>
>
> Possibly, though the semantics would change: what before was
> an abstract type is now translucent (ie, not quite transparent).
>
> Regards,
> Dario
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next prev parent reply other threads:[~2012-11-19 18:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 17:49 Dario Teixeira
2012-11-19 18:02 ` Török Edwin
2012-11-19 18:18 ` Dario Teixeira
2012-11-19 18:28 ` David House [this message]
2012-11-20 9:53 ` Gabriel Scherer
2012-11-20 10:25 ` Pierre Chambart
2012-11-20 16:19 ` Gabriel Scherer
2012-11-20 19:03 ` Vincent HUGOT
2012-11-20 20:43 ` Dario Teixeira
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='CAK=fH+hLkJXqe_A-ux5T4Yu4c2DR3QdY9NK7xLxDJmz7K+6Y+w@mail.gmail.com' \
--to=dhouse@janestreet.com \
--cc=caml-list@inria.fr \
--cc=darioteixeira@yahoo.com \
--cc=edwin+ml-ocaml@etorok.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;
as well as URLs for NNTP newsgroup(s).