Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Efficency of varient types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists