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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 37027BC6B for ; Mon, 8 Oct 2007 21:08:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIccCkfAXQInh2dsb2JhbACORQEBAQgKKQ X-IronPort-AV: E=Sophos;i="4.21,244,1188770400"; d="scan'208";a="2460129" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 08 Oct 2007 21:08:03 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l98J82xc031510 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 8 Oct 2007 21:08:03 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAO8cCkfBvsFJn2dsb2JhbACORQEBAQEHBAYJCBg X-IronPort-AV: E=Sophos;i="4.21,244,1188770400"; d="scan'208";a="2640010" Received: from hedwig2.umh.ac.be (HELO hedwig1.umh.ac.be) ([193.190.193.73]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 Oct 2007 21:08:03 +0200 Received: from poincare.swapping.umh.ac.be ([10.102.100.12]) by hedwig1.umh.ac.be (8.13.6/8.13.6) with ESMTP id l98J88mE1048822; Mon, 8 Oct 2007 21:08:08 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.67) (envelope-from ) id 1IexxN-00023d-Gh; Mon, 08 Oct 2007 21:07:57 +0200 Date: Mon, 08 Oct 2007 21:07:57 +0200 (CEST) Message-Id: <20071008.210757.161672405.Christophe.Troestler+ocaml@umh.ac.be> To: caml-list@inria.fr Subject: Re: [Caml-list] Correct way of programming a CGI script From: Christophe TROESTLER In-Reply-To: <6f9f8f4a0710080911x2cfbd2e1u873b9f99094f8d93@mail.gmail.com> References: <6f9f8f4a0710080911x2cfbd2e1u873b9f99094f8d93@mail.gmail.com> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 5.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at concorde with ID 470A8012.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 ocaml:01 sourceforge:01 wrote:01 caml-list:01 umh:01 short:01 strings:01 strings:01 implemented:02 On Mon, 8 Oct 2007 18:11:52 +0200, Loup Vaillant wrote: > > 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. Have a look here : http://sourceforge.net/projects/ocaml-rope ChriS