From: Markus Mottl <markus@oefai.at>
To: malc <malc@pulsesoft.com>
Cc: Richard Nyberg <rnyberg@it.su.se>, caml-list@inria.fr
Subject: Re: [Caml-list] Bigarray access speed
Date: Fri, 16 Aug 2002 12:40:52 +0200 [thread overview]
Message-ID: <20020816104052.GA31103@fichte.ai.univie.ac.at> (raw)
In-Reply-To: <Pine.LNX.4.44.0208161417580.941-100000@home.oyster.ru>
On Fri, 16 Aug 2002, malc wrote:
> Bigarrays(of at least floats) can have a slight edge over normals arrays.
> To get maximal speed of the inner loops data needs to be naturally
> aligned. OCaml does nothing to enforce it for non-big arrays. Bigarrays on
> the other hand are mmaped(4k on IA32) and you get perfectly aligned data
> for free. I was thinking that maybe Array can be extended with
> make[create]_aligned, for speed/space tradeoff.
Additionally, it would also be nice to have a specialized "create"
function for (naturally unboxed) float arrays such that they need not
be initialized with a given float value. This may be beneficial for
algorithms that allocate work space whose contents is not necessarily
fully needed but filled on demand.
Regards,
Markus Mottl
--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-08-16 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-15 22:50 Richard Nyberg
2002-08-16 10:27 ` malc
2002-08-16 10:40 ` Markus Mottl [this message]
2002-08-16 11:08 ` float array alignment; was " William Chesters
2002-08-19 12:56 ` Xavier Leroy
2002-08-19 13:07 ` malc
2002-08-16 18:46 ` Richard Nyberg
2002-08-16 6:19 Joe HELL
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=20020816104052.GA31103@fichte.ai.univie.ac.at \
--to=markus@oefai.at \
--cc=caml-list@inria.fr \
--cc=malc@pulsesoft.com \
--cc=rnyberg@it.su.se \
/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