caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Threads performance issue.
@ 2009-02-16 15:15 Rémi Dewitte
  2009-02-16 15:28 ` [Caml-list] " Michał Maciejewski
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Rémi Dewitte @ 2009-02-16 15:15 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

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 !

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

[-- Attachment #2: Type: text/html, Size: 721 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-02-17 17:14 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-16 15:15 Threads performance issue Rémi Dewitte
2009-02-16 15:28 ` [Caml-list] " Michał Maciejewski
2009-02-16 15:32   ` Rémi Dewitte
2009-02-16 15:42     ` David Allsopp
2009-02-16 16:07       ` Rémi Dewitte
2009-02-16 16:32 ` Sylvain Le Gall
2009-02-17 13:52   ` [Caml-list] " Frédéric Gava
2009-02-16 16:47 ` [Caml-list] " Yaron Minsky
2009-02-16 17:37   ` Rémi Dewitte
2009-02-17  7:40     ` Rémi Dewitte
2009-02-17  8:59       ` Mark Shinwell
2009-02-17  9:09         ` Rémi Dewitte
2009-02-17  9:53         ` Jon Harrop
2009-02-17 10:07       ` Sylvain Le Gall
2009-02-17 10:26         ` [Caml-list] " Mark Shinwell
2009-02-17 10:50           ` Rémi Dewitte
2009-02-17 10:56             ` Mark Shinwell
2009-02-17 11:33             ` Jon Harrop
2009-02-17 12:20         ` Yaron Minsky
2009-02-17 12:26           ` Rémi Dewitte
2009-02-17 17:14           ` Sylvain Le Gall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).