From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <5764c029b688c1c0d24a2e97cd764f@gmail.com> 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 6EF5F7F712 for ; Sat, 25 Jan 2014 19:39:39 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com) identity=pra; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com designates 74.125.82.44 as permitted sender) identity=mailfrom; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f44.google.com) identity=helo; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="postmaster@mail-wg0-f44.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwGAKgD5FJKfVIslGdsb2JhbABagiCBJLoPhBsWDgEBAQEHCwsJEiqCbAEbHgMSEBY0AhIRAQUBLwgCh2wBAxEEAQica4MIjFyDCZJvChknDWSFAwEBBAyPHoQiBJgnhkeJakGEWQ X-IPAS-Result: ApwGAKgD5FJKfVIslGdsb2JhbABagiCBJLoPhBsWDgEBAQEHCwsJEiqCbAEbHgMSEBY0AhIRAQUBLwgCh2wBAxEEAQica4MIjFyDCZJvChknDWSFAwEBBAyPHoQiBJgnhkeJakGEWQ X-IronPort-AV: E=Sophos;i="4.95,720,1384297200"; d="scan'208";a="54835587" Received: from mail-wg0-f44.google.com ([74.125.82.44]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Jan 2014 19:39:39 +0100 Received: by mail-wg0-f44.google.com with SMTP id l18so4105945wgh.23 for ; Sat, 25 Jan 2014 10:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=wM5FQi2+/63+bbrs2HVrCmws6b/k6o5XerJIRrafQH0=; b=YLF+0NtMBONADH6m8Q+QdXlMqPltoKgHaMgT/hWnp9XhLajgu3Ao1WUiW92s3lIgxI eHV2NJz6CnF+b79hJ5rov+hfZiCSz5j20ELbnxw2cqsz8Q8+XNxS4/840X2nBQpSl2v0 dm1p0fLyh4k4y9StkuZKHIRExjPAsBgdnCZXEQV4EOkkkgik7qbfyF1nqVj9zwRNr5jQ MELlfVflzPBmhjdUZeNA/D+S1YYOs8bFdE9f0zZ//0QxvH0ZBe+77ak/WIRfd1HfUOg5 xGRIMP9/m6Ai0XN9jxPd1KUFiyqwcYwqahOOV9lFKuRb10HAqJ9OZmcoinLr0f8xa854 dmfg== X-Received: by 10.180.95.162 with SMTP id dl2mr7114239wib.17.1390675178668; Sat, 25 Jan 2014 10:39:38 -0800 (PST) Received: from [172.27.6.167] ([213.106.240.92]) by mx.google.com with ESMTPSA id p1sm16162334wie.1.2014.01.25.10.39.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jan 2014 10:39:38 -0800 (PST) Message-ID: <52E404ED.80302@gmail.com> Date: Sat, 25 Jan 2014 18:39:41 +0000 From: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: caml-list@inria.fr X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Caml-list] ocaml{c,opt} choked Hi, I am using ocaml 4.01.0. I have noticed the following strange behavior: When I try to compile this fragment: (irrelevant parts of the original program were removed) let a b = b [] let c _ _ d = d [] let _ = a c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" it takes 11 seconds to complete. This fragment. let a b = b [] let c _ _ d = d [] let _ = a c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" compiles in 22 seconds. This fragment: let a b = b [] let c _ _ d = d [] let _ = a c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" c "" compiles in 44 seconds. I would like to ask: is this is a known phenomenon? ------------------------------------------------------------------- The context: I have started to apply the advice given here: https://sympa.inria.fr/sympa/arc/caml-list/2013-11/msg00207.html That way I've got terms with which ocaml{c,opt} struggles.