Browse thread
OCaml image blending performance
[
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: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] OCaml image blending performance |
On Wed, Feb 06, 2008 at 11:34:02PM +0000, Jon Harrop wrote: > In this case, most of the speed loss can be regained by simply > aggressively inlining everything, which is exactly what you (ab)used > C macros for in the C code. I don't understand this. In 'blend2.ml' (which I was responsible for) C macros are used to inline all the OCaml functions the same as in the C version. Yet it's still 70% slower than the C version. My suspicion was that it was to do with his use of a string as a byte array. Rich. -- Richard Jones Red Hat