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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id D11617ED45 for ; Mon, 25 Jun 2012 00:19:10 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkCADWR509KfVI0jmdsb2JhbABEDrVmCCIBAQEBCQsJCRIGI4IYAQEBAwESAiwBGx0BAwELBgULOyIBEQEFARwGNYdaAQMGBZo6CQOMI4Jxg38KGScNV4hxAQUMkSkDlS6JJoR+PoNFOw X-IronPort-AV: E=Sophos;i="4.77,468,1336341600"; d="scan'208";a="164230324" Received: from mail-wg0-f52.google.com ([74.125.82.52]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Jun 2012 00:19:10 +0200 Received: by wgbgn7 with SMTP id gn7so3528410wgb.9 for ; Sun, 24 Jun 2012 15:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=op1VBsLywfPhBb4+TRE4nEtGiUJbSIWfcWviPacrBDw=; b=Js0YSZN3e9TZYm3RIY5Vqq2rK0L4NFQNPZ+8hPma05oLRQHVFwmzMUolqR/ildssAQ OWhtkAypeUhftxPd9iK8aLYljEhib1CkCLl9Gfa80DLlyKQaORxwcBhwnAl5910OpEwh wmZGhqnQCjWpbCE4HzUzIflN13Xunhxs4WdgpuF92ugomjy8pkT+RJ/s477yGTvVccS3 7Ccwu/CqzCs0j6+2uL/lLHUEmn/N0mcNqp1o3VjdT6pKQ+AH4R61VFQV4B+oJT4NzxaG eu3yCgjQ6a5vKy5oFjogOYYbe6W/PEViuzIIMkCNjXQaDAP09is4e42mQ/hJWxaZxVL8 Jr2A== MIME-Version: 1.0 Received: by 10.216.150.166 with SMTP id z38mr5132642wej.78.1340576350355; Sun, 24 Jun 2012 15:19:10 -0700 (PDT) Received: by 10.217.1.8 with HTTP; Sun, 24 Jun 2012 15:19:10 -0700 (PDT) In-Reply-To: <20120624.220220.2022399462583597382.Christophe.Troestler@umons.ac.be> References: <20120624211840.124466j26yxz6rkg@webmail.in-berlin.de> <20120624.220220.2022399462583597382.Christophe.Troestler@umons.ac.be> Date: Mon, 25 Jun 2012 00:19:10 +0200 Message-ID: From: Diego Olivier Fernandez Pons To: Christophe TROESTLER Cc: OCaml Mailing List Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] print_int is too slow Christophe, > The culprit is not with print_int but with =93print_newline ()=94 which > forces the ouput to be flushed. =A0As you discovered experimentally, > doing this often will slow down your output. During all the years I have been coding, I had never had to worry about flushing I/O (when / why / how) in any language (C/C++, Java, C# and OCaml). I actually had even forgotten those things existed... Diego Olivier