2009/2/16 Rémi Dewitte <remi@gide.net>
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 my first version of the program to run in 12s !

Do you have a short benchmark you can post?  The idea that the thread-overhead would make a difference like that, particularly for IO-bound code (which I'm guessing this is) is pretty surprising.

y
 

I use pcre, extlib, csv libraries as well.

I guess it might come from GC slowing down thinks here, doesn't it ? Where can it come from otherwise ? Is there a workaround or something I should know ?

Can ocaml use multiple cores ?

Do you have few pointers on libraries to make parallel I/Os ?

Thanks,
Rémi

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs