Re: Re : [Caml-list] Re: XML output

2009-03-17 Thread Rémi Dewitte
Mars 2009, 13h53mn 30s > > Objet : [Caml-list] Re: XML output > > > > On 17-03-2009, Rémi Dewitte wrote: > > > > > > I think I am going to start with the Printf module. I wonder how well > it > > > handles utf8 for example. And I'll have to

[Caml-list] XML output

2009-03-17 Thread Rémi Dewitte
Hello, I have used pxp to parse xml and I am happy with it. I'd like now to produce xml and wonder what are the options to do so (possibly the simpliest). I think I am going to start with the Printf module. I wonder how well it handles utf8 for example. And I'll have to write a kind of xml_encode

Re: [Caml-list] Re: Threads performance issue.

2009-02-17 Thread Rémi Dewitte
ld be. > > At Jane Street, performance-sensitive code tends to use other libraries > that we've built directly on top of file descriptors that batches the IO and > doesn't require constant lock acquisition. > > y > > > On Tue, Feb 17, 2009 at 5:07 AM, Sylvain

Re: [Caml-list] Re: Threads performance issue.

2009-02-17 Thread Rémi Dewitte
round ? And then why not try iao ! Memory mapping of the file could be done using BigArray or do I have to write C code ? Rémi On Tue, Feb 17, 2009 at 11:26, Mark Shinwell wrote: > On Tue, Feb 17, 2009 at 10:07:05AM +, Sylvain Le Gall wrote: > > On 17-02-2009, Rémi Dewitte wrot

Re: [Caml-list] Threads performance issue.

2009-02-17 Thread Rémi Dewitte
You need to uncomment the line 107 with Thread calls so that it is effectively linked to threads I think and see the difference ! I will try the profiling ! Rémi On Tue, Feb 17, 2009 at 09:59, Mark Shinwell wrote: > On Tue, Feb 17, 2009 at 08:40:11AM +0100, Rémi Dewitte wrote: > > I

Re: [Caml-list] Threads performance issue.

2009-02-16 Thread Rémi Dewitte
E8400 @ 3.00GHz GNU/Linux While I think I have to find improvements to the functional version, I struggle finding a rationale behind this high loss of performance while I am not even using threads, just linking to... Cheers, Rémi On Mon, Feb 16, 2009 at 18:37, Rémi Dewitte wrote: > Ya

Re: [Caml-list] Threads performance issue.

2009-02-16 Thread Rémi Dewitte
p () with End_of_file -> (* Any part left to write out? *) (match !state with StartField -> if !row <> [] then ( empty_field (); end_of_row () ) | InUnquotedField | InQuotedFieldAfterQuote -> end_of_field (); end_of_row () | InQuotedF

Re: [Caml-list] Threads performance issue.

2009-02-16 Thread Rémi Dewitte
...@yquem.inria.fr] *On Behalf Of *Rémi Dewitte > *Sent:* 16 February 2009 15:33 > *To:* Michał Maciejewski > *Cc:* caml-l...@inria.fr > *Subject:* Re: [Caml-list] Threads performance issue. > > > > > > On Mon, Feb 16, 2009 at 16:28, Michał Maciejewski > wrote: &g

Re: [Caml-list] Threads performance issue.

2009-02-16 Thread Rémi Dewitte
On Mon, Feb 16, 2009 at 16:28, Michał Maciejewski wrote: > Hi, > > 2009/2/16 Rémi Dewitte : > > I guess it might come from GC slowing down thinks here, doesn't it ? > I don't think so. Why do you think it's GC? > Bad guess :) ! Any hint why just linking makes

[Caml-list] Threads performance issue.

2009-02-16 Thread Rémi Dewitte
Hello, I would like to read two files in two different threads. I have made a first version reading the first then the second and it takes 2.8s (native). I decided to make a threaded version and before any use of thread I realized that just linking no even using it to the threads library makes m