Browse thread
ANNOUNCE : libsndfile-ocaml alpha
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Pal-Kristian Engstad <pal_engstad@n...> |
| Subject: | Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha |
Gerd Stolpmann wrote:
> Just a quick and somehow interesting observation: Linus assumes that the
> read buffer is page-aligned in this comparison, something you cannot
> expect in most higher languages (of course you can arrange that in
> libsndfile - did you?). That reminds me that the OS guys live in another
> world.
If you don't care about (run-time) performance then of course you are
right. But, please note that a major source of bad performance nowadays
is bad data layout. You can typically increase the performance by orders
of magnitude by doing simple things as making sure your data is aligned
to cache-line boundaries. The "k-factor" in the big-Oh notation is often
ignored when it shouldn't. This is one of the reasons arcane languages
such as C/C++ keep their steam.
Thanks,
PKE.
--
Pål-Kristian Engstad (engstad@naughtydog.com), Lead Programmer, ICE
team, Naughty Dog, Inc., 1601 Cloverfield Blvd, 6000 North,
Santa Monica, CA 90404, USA. Ph.: (310) 633-9112.
"Most of us would do well to remember that there is a reason Carmack
is Carmack, and we are not Carmack.",
Jonathan Blow, 2/1/2006, GD Algo Mailing List