From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 3D5B8BB91 for ; Mon, 10 Jan 2005 10:57:30 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0A9vT9O020344 for ; Mon, 10 Jan 2005 10:57:29 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA16765 for ; Mon, 10 Jan 2005 10:57:29 +0100 (MET) Received: from alex.barettalocal.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0A9vSx7020341 for ; Mon, 10 Jan 2005 10:57:29 +0100 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by alex.barettalocal.com (Postfix) with ESMTP id 5B4E52BB16F; Mon, 10 Jan 2005 10:57:28 +0100 (CET) Message-ID: <41E25188.3030004@barettadeit.com> Date: Mon, 10 Jan 2005 10:57:28 +0100 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 X-Accept-Language: it, en-us, en MIME-Version: 1.0 To: Christophe TROESTLER , Ocaml Subject: Re: [Caml-list] Thread safe Str References: <20050109.203010.110660321.Christophe.Troestler@umh.ac.be> In-Reply-To: <20050109.203010.110660321.Christophe.Troestler@umh.ac.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41E25189.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41E25188.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 christophe:01 troestler:01 wrote:01 lgpl:01 pcre:01 regexp:01 cheers:01 baretta:01 structures:01 data:02 thread:02 thread:02 allocated:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.0 X-Spam-Level: Christophe TROESTLER wrote: > Hi, > > The new Str module not only made it LGPL but also very fast (100% more > than Pcre in some cases). However it is still not thread safe -- and > it is not possible given its interface. However, from a quick look, > it seems to me that what is under the hood is almost thread safe. So > why not to write a new module (say Regexp) which would be thread safe > and on top of which Str would be build? This would not be too much > work, would it? > > Cheers, > ChriS I think I remember a thread where Xavier explained that Str is fully thread safe because all state data structures are allocated on a per-thread basis. Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project