From: dmitry grebeniuk <gdsfh1@gmail.com>
To: peng.zang@gmail.com, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Batteries and portability
Date: Sun, 14 Jun 2009 00:44:08 +0300 [thread overview]
Message-ID: <b364036a0906131444i1c51583j3678c88456da5387@mail.gmail.com> (raw)
In-Reply-To: <200906131350.09878.peng.zang@gmail.com>
2009/6/13 Peng Zang <peng.zang@gmail.com>:
> Has anyone pushed this patch upstream to the
> camomile author(s)?
>
> It seems like a good change that should be made
> in the original sources to make it more portable...
This patch is very useful (at least for me; thanks, Tiphaine!),
but it's not performance-wise to make each camomile library
copy behave like this. With this patch, every character
that passes patched function will cause runtime penalty -- one
check for lazy value and one pointer dereference.
The right fix is to remove the construction of module "Default"
(and its initialization, consequently) from the camomile library.
But this will break api.
Maybe it will be better to add this patch as a default behavior,
and make a configure option for "new camomile without
Default", so that old software will use slow camomile with lazy
accesses, and new software will use camomile without module
"Default".
prev parent reply other threads:[~2009-06-13 21:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 9:24 Tiphaine Turpin
2009-06-11 14:10 ` [Caml-list] " Edgar Friendly
2009-06-11 14:23 ` Tiphaine Turpin
2009-06-11 15:42 ` David MENTRE
2009-06-12 12:09 ` David Rajchenbach-Teller
2009-06-11 15:46 ` dmitry grebeniuk
2009-06-11 16:38 ` Tiphaine Turpin
2009-06-11 15:59 ` dmitry grebeniuk
2009-06-12 13:08 ` Tiphaine Turpin
2009-06-13 17:50 ` Peng Zang
2009-06-13 21:44 ` dmitry grebeniuk [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=b364036a0906131444i1c51583j3678c88456da5387@mail.gmail.com \
--to=gdsfh1@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=peng.zang@gmail.com \
/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