From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 9B66B7EC6E for ; Fri, 17 Jan 2014 08:35:38 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alphablock@orange.fr) identity=pra; client-ip=80.12.242.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alphablock@orange.fr"; x-sender="alphablock@orange.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alphablock@orange.fr) identity=mailfrom; client-ip=80.12.242.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alphablock@orange.fr"; x-sender="alphablock@orange.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.smtpout.orange.fr) identity=helo; client-ip=80.12.242.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alphablock@orange.fr"; x-sender="postmaster@smtp.smtpout.orange.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An0BAJFf2FJQDPKGm2dsb2JhbABZhxe5OA4BAQEBAQYLCwkUKIJPgQsCJgJfiAIBGJoPjxGVbwGGLReBKZAMDzGBSQSPJYh8giWEIY5/ X-IPAS-Result: An0BAJFf2FJQDPKGm2dsb2JhbABZhxe5OA4BAQEBAQYLCwkUKIJPgQsCJgJfiAIBGJoPjxGVbwGGLReBKZAMDzGBSQSPJYh8giWEIY5/ X-IronPort-AV: E=Sophos;i="4.95,670,1384297200"; d="scan'208";a="53645387" Received: from smtp12.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) ([80.12.242.134]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Jan 2014 08:35:38 +0100 Received: from [192.168.1.10] ([90.29.122.248]) by mwinf5d23 with ME id Evbd1n00B5Mfmnu03vbdHo; Fri, 17 Jan 2014 08:35:38 +0100 From: "Damien Guichard" To: "Caml Mailing List" Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 17 Jan 2014 08:35:35 +0100 Message-ID: <523666417617602473@orange.fr> X-Mailer: EssentialPIM Portable v. 4.54 X-Validation-by: alphablock@orange.fr Subject: [Caml-list] How much optimized is the 'a option type ? Hello, Compared to the code : type 'a option = None | Some of 'a How do an 'a option value performs ? Any allocation saved ? Any indirection removed ? Is 'a option just like any sum type ? Or is 'a option more like an ANSI C pointer type ? Regards, Damien Guichard