<mrvn>
I need so search&replace package names including any references in Depends/Conflicts/...
<mrvn>
mikeX: thx. that one looks like a good starting point.
<mikeX>
np
Smerdyakov has joined #ocaml
<flux>
hmh, I'm surprised, message-passing between actual threads in C is twice as fast as with my single-thread continuation-thingy in Ocaml :-/
<flux>
(cps-style framework)
<flux>
I bet mlton would be faster.. ;-)
<flux>
(I'll say that ahead before anyone else does ;-))
<Smerdyakov>
Or how about just "any optimizing compiler will probably beat the misleadingly named ocamlopt"? ;-)
<flux>
actually the c-version is 2.7 times as fast :)
<mrvn>
maybe your ocaml code is bad
<flux>
that could be
<mrvn>
do you use select()?
<flux>
no.. I will do a useless roundtrip to libselect, though
<mrvn>
So you have a list of fds that you convert on each libselect call?
joshcryer has joined #ocaml
<flux>
no, nothing like that, it's all in memory, but the framework supports incoming fd-events
<flux>
it turns out commenting the Libevent-call helps the program so that the c-version is only 1.5 times as fast
<flux>
but neither of the programs do anything with any fds
<mrvn>
In my last cps based parser I made the IPC calls to be simple function calls.
<flux>
yeah, I can see that would work, and be very fast
<mrvn>
Going from posix messages between threads in C to function calls in ocaml was a lot quicker.
<flux>
but I'm trying to replicate the Event-module
<Smerdyakov>
flux, you're re-implementing part of the thread library?
<flux>
and it's not immediately obvious how to do that with simple function calls
<flux>
yes, but it's not that big deal when you don't need to deal with locking, actually I've done it already
<mrvn>
flux: MyThread.event thread event :)
<flux>
I suppose 40000 messages per second is a lot more than I need, though
<flux>
hm, actually 80000, there's a response also
<mrvn>
I didn't have any expensive jobs so I only scheduled on read. All jobs would get some read event, parse it, write a responce and go back to sleep.
<flux>
it might be that the module is overly complex
<mrvn>
home, sweet home. *wave*
<flux>
bye
<flux>
infact I think that's where I'll be headed next, bye2 ;-)
malc_ has joined #ocaml
ikaros has joined #ocaml
<Smerdyakov>
Times zones are a funny thing. It's just time for me to _leave_ home for the day.
ikaros has quit ["segfault"]
JeffSmac has joined #ocaml
JeffSmac has quit [Client Quit]
ikaros has joined #ocaml
jlouis has joined #ocaml
bluestorm has quit [Remote closed the connection]
bluestorm has joined #ocaml
slipstream-- has quit [Read error: 60 (Operation timed out)]
smimp has quit ["Lost terminal"]
slipstream has joined #ocaml
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
mqtt has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 60 (Operation timed out)]