From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A21D2BC6C for ; Mon, 8 Oct 2007 18:11:55 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADH0CUfAXQInh2dsb2JhbACOQwIBCAop X-IronPort-AV: E=Sophos;i="4.21,243,1188770400"; d="scan'208";a="2632221" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 Oct 2007 18:11:55 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l98GBr3i020251 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 8 Oct 2007 18:11:55 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPryCUdA6aLkkmdsb2JhbACOQwIBAQcEBBMW X-IronPort-AV: E=Sophos;i="4.21,243,1188770400"; d="scan'208";a="4057578" Received: from nz-out-0506.google.com ([64.233.162.228]) by mail3-smtp-sop.national.inria.fr with ESMTP; 08 Oct 2007 18:11:54 +0200 Received: by nz-out-0506.google.com with SMTP id z3so649551nzf for ; Mon, 08 Oct 2007 09:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ygL77YiwXGqNO2f3HnCHzOHgaH7wNaxnK+bEe/fS4zU=; b=gti7xJuNEZ/7qfrNzeZngyieeQesKGTpuadrnuViN0KaFkA+y83dKDPb7zAnxQYQLWNUl5EMP87DQ1XffbHY3XQdCXwVnfAjgRqjS8EcTaoGXDjY0lDYh2+LY2DQt2gL0AJC6B55ZMFgzU/76lk/dJN4WG+Kr65UOzKYKnC5n7U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ATG2kO1EaFby7VnWOje5cKn2t//Aiu44+H/0cjLuNavKbo3OzsHU4i5KMgJsU/D/z/U/K9g/lr/ogqYrUbdCcVGI0jNOTbfZAWaDj2Niq1pSMyYyysUDiw84WBgW84WOe99Oen/j/l+5dYgeNnzCcCcyQ4O0W9Wfl8UFmW7yTAs= Received: by 10.64.153.4 with SMTP id a4mr15028855qbe.1191859912324; Mon, 08 Oct 2007 09:11:52 -0700 (PDT) Received: by 10.65.15.11 with HTTP; Mon, 8 Oct 2007 09:11:52 -0700 (PDT) Message-ID: <6f9f8f4a0710080911x2cfbd2e1u873b9f99094f8d93@mail.gmail.com> Date: Mon, 8 Oct 2007 18:11:52 +0200 From: "Loup Vaillant" To: "Caml-list List" Subject: Re: [Caml-list] Correct way of programming a CGI script In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Miltered: at concorde with ID 470A56C9.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 caml-list:01 short:01 strings:01 strings:01 implemented:02 string:02 string:02 programming:03 long:06 probably:07 anybody:07 correct:08 cgi:90 2007/10/8, Tom : > > I heard that OCaml is particularly slow (and probably memory-inefficient) > when it comes to string manipulation. What is the preferred way in handling > strings (building long strings from short parts - something StringBuilder > would be used in Java)? Does anybody have any experience concerning this > kind of applications? Someone (don't remember the name) implemented ropes in Ocaml. Ropes were specifically designed for string manipulation, if I remember well. Maybe this is worth a look. Loup Vaillant