[
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: | 2009-09-27 (21:59) |
From: | David McClain <dbm@r...> |
Subject: | Re: [Caml-list] HLVM stuff |
On Sep 27, 2009, at 12:25 PM, Jon Harrop wrote: > where the "kthSmallest" and "Array2D.parallelInit" functions are both > polymorphic. The former handles implicit sequences of any comparable > type and > the latter handles 2D arrays of any element type. This use of > polymorphic But facing a situation with 2^26 pixels to process, I would never do that. I would write a type-specific function to apply. Why dispatch of every pixel of the aggregate, when I could dispatch once at the top, to decide what kind of homogeneous array... Dr. David McClain dbm@refined-audiometrics.com