andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
steenuil_ has quit [Remote host closed the connection]
steenuil_ has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
zolk3ri has quit [Ping timeout: 268 seconds]
zolk3ri has joined #ocaml
metreo has quit [Remote host closed the connection]
metreo has joined #ocaml
dinosaure has quit [Ping timeout: 240 seconds]
dinosaure has joined #ocaml
Haudegen has joined #ocaml
amiloradovsky has quit [Ping timeout: 258 seconds]
Tuplanolla has quit [Quit: Leaving.]
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
metreo has quit [Quit: metreo]
rock64 has quit [Ping timeout: 258 seconds]
rock64 has joined #ocaml
steenuil_ has quit [Read error: Connection reset by peer]
catt has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 256 seconds]
mxns has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
rdivyanshu has joined #ocaml
aquijoule__ has joined #ocaml
aquijoule_ has quit [Ping timeout: 265 seconds]
mxns has quit [Ping timeout: 272 seconds]
mfp_ has quit [Ping timeout: 246 seconds]
borne has quit [Ping timeout: 264 seconds]
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
mxns has joined #ocaml
mxns_ has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
narimiran has joined #ocaml
rpcope- has quit [Ping timeout: 256 seconds]
rpcope has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
sm2n has quit [Quit: Leaving]
sm2n has joined #ocaml
mbuf has joined #ocaml
mxns_ has quit [Ping timeout: 258 seconds]
decentpenguin has quit [Quit: ZNC crashed or something]
decentpenguin has joined #ocaml
rdivyanshu has quit [Quit: Connection closed for inactivity]
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
vesper11 has joined #ocaml
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
vesper11 has quit [K-Lined]
borne has joined #ocaml
borne has quit [Ping timeout: 272 seconds]
borne has joined #ocaml
steenuil has joined #ocaml
amiloradovsky has quit [Ping timeout: 258 seconds]
bartholin has joined #ocaml
benc has joined #ocaml
olle has joined #ocaml
Tuplanolla has joined #ocaml
Haudegen has joined #ocaml
dinosaure has quit [Quit: WeeChat 2.3]
dinosaure has joined #ocaml
<avsm[m]>
cemerick: that's worth raising a dune issue for to clarify that it's not an implementation-specific detail
<avsm[m]>
but you're best off explicitly specifying modules in any case
benc has quit [Remote host closed the connection]
zebrag has joined #ocaml
hannes has quit [Remote host closed the connection]
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #ocaml
hannes has joined #ocaml
benc has joined #ocaml
mfp_ has joined #ocaml
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
benc has quit [Read error: Connection reset by peer]
benc_ has joined #ocaml
zebrag has joined #ocaml
metreo has joined #ocaml
metro has joined #ocaml
metreo has quit [Ping timeout: 240 seconds]
metro is now known as metreo
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
metreo has quit [Quit: metreo]
metreo has joined #ocaml
<cemerick>
avsm[m]: even though it is documented?
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
ski has quit [Killed (Sigyn (Spam is off topic on freenode.))]
rople has joined #ocaml
ygrek has joined #ocaml
rople has quit [Quit: rople]
rople has joined #ocaml
rople has quit [Client Quit]
rople has joined #ocaml
rople has quit [Client Quit]
rople has joined #ocaml
benc_ has quit []
ski has joined #ocaml
borne has quit [Ping timeout: 258 seconds]
tane has joined #ocaml
waleee-cl has joined #ocaml
metreo has quit [Quit: metreo]
mbuf has quit [Quit: Leaving]
borne has joined #ocaml
olle has quit [Ping timeout: 272 seconds]
rople has quit [Ping timeout: 240 seconds]
neiluj has joined #ocaml
neiluj has quit [Changing host]
neiluj has joined #ocaml
bartholin has quit [Quit: Leaving]
neiluj has quit [Quit: leaving]
mxns has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
neiluj has joined #ocaml
neiluj has joined #ocaml
vicfred has joined #ocaml
borne has quit [Ping timeout: 246 seconds]
metreo has joined #ocaml
mxns has joined #ocaml
neiluj_ has joined #ocaml
neiluj_ has quit [Client Quit]
neiluj_ has joined #ocaml
neiluj has quit [Quit: leaving]
neiluj_ has quit [Client Quit]
neiluj has joined #ocaml
neiluj has quit [Changing host]
neiluj has joined #ocaml
ArthurStrong has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
amiloradovsky has joined #ocaml
mxns has joined #ocaml
oriba has joined #ocaml
<oriba>
using OCaml with stb-image-Pakackage, reading a jpg file takes about 1.4 s, and the same file opened with Python (PIL-lib) takes about 0.4 s, and this includes converting it from RGB to Lab. In about 1.9 s the Python-script has also calculated a histogram and centroids on the image and written the color-histogram to SQLite-db.
visitor has joined #ocaml
olle has joined #ocaml
<oriba>
ok, playing around with OCAMLRUNPARAM I can get below 1s. But thats far away from the Python-PIL thing
<oriba>
Any ideas on how to tweak it for better performance? (used OCAMLRUNPARAM=s=16M,i=32M,o=150 and the image is about 584 kB)
<oriba>
tryied profiling: error: "Profiling with "gprof" (option `-p') is only supported up to OCaml 4.08.0"
<oriba>
how to do that with current ocaml?
<octachron>
Isn't the python library some glue code above optimized C ?
<octachron>
You can use generic profiling tools like prof
<d_bot>
<Bluddy> stb-image is also glue code above a C library. PIL probably has a better implementation
<d_bot>
<Bluddy> if it takes half a second, it sounds like a pretty hefty jpg file. I'm guessing it stretches the limits of stb-image
<d_bot>
<Bluddy> ok you're doing conversion as well
<oriba>
the 0.4 s in PIL is with conversion from RGB to Lab.
<oriba>
yes
<oriba>
Maybe I have a bottleneck when converting the Bigarray-stuff to my int * int * int array.
<d_bot>
<Bluddy> that could be
<d_bot>
<Bluddy> time it without that part
<d_bot>
<Bluddy> still seems like too much time
<d_bot>
<Bluddy> maybe stb-image sucks on jpegs, or is compiled badly somehow
<d_bot>
<Bluddy> but an `int*int*int array` is not an efficient representation for this
<d_bot>
<Bluddy> I suggest you use Owl_base instead to handle the bigarray data
<oriba>
I have not used Bigarra before. Can I perform operations directly on Bigarrays?
<oriba>
Owl, aha.
<d_bot>
<Bluddy> you can with the right library. it's basically numpy
<oriba>
hehe OCaml uses Python-libs?
<d_bot>
<Bluddy> no, it's just a numpy-style library for ocaml