Browse thread
Efficency of varient types
[
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: | 2005-11-28 (10:06) |
From: | Jon Harrop <jon@f...> |
Subject: | Re: [Caml-list] Efficency of varient types |
On Monday 28 November 2005 07:49, Jacques Garrigue wrote: > More importantly, polymorphic variants are internally encoded as > integers, so there is no representation cost for constant tags. Is pattern matching over constant ordinary variants not more efficient than pattern matching over constant polymorphic variants when compiled to native code? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists