<stj>
since the float arguments x and y are boxed, this is noticeably slower than java and c++... do you perhaps see a way to do this computation faster (possibly in an uglier way) by avoiding boxing?
<stj>
if that is possible at all
<stj>
perhaps using a while loop and references would do it, but that defeats the purpose since that way we box values inside ref :)
mye_ has joined #ocaml
mye has quit [Ping timeout: 246 seconds]
mye_ is now known as mye
<mbac>
stj, float arrays?
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Snark has joined #ocaml
justdit has joined #ocaml
jewel has joined #ocaml
sepp2k has quit [Remote host closed the connection]
<orbitz>
stj: the floats are also smaller in Ocaml too
Cyanure has joined #ocaml
<orbitz>
stj: I just ran the C++ and Ocaml versions lcoally. ocaml time is ~2.6s, C++ time is ~1.4s
<orbitz>
oh andthis guy is such a cheater, he uses inline asm in the C++ code
<orbitz>
oh andcount reference too, not very ocaml
jewel has quit [Ping timeout: 252 seconds]
ulfdoz has joined #ocaml
mye has quit [Quit: mye]
Cyanure has quit [Remote host closed the connection]
thomasga has joined #ocaml
ulfdoz has quit [Ping timeout: 252 seconds]
hkBst has joined #ocaml
Cyanure has joined #ocaml
hkBst has quit [Ping timeout: 246 seconds]
groleo has joined #ocaml
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
djcoin has joined #ocaml
caligula__ has quit [*.net *.split]
sgnb has quit [*.net *.split]
maufred_ has quit [*.net *.split]
Derander has quit [*.net *.split]
cross has quit [*.net *.split]
yroeht has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
Asmadeus has joined #ocaml
caligula__ has joined #ocaml
cross has joined #ocaml
maufred has joined #ocaml
sgnb has joined #ocaml
Derander has joined #ocaml
sgnb is now known as Guest48430
yroeht has joined #ocaml
Submarine has quit [Ping timeout: 256 seconds]
Guest48430 is now known as sgnb`
sgnb` is now known as sgnb
chambart has joined #ocaml
mika4 has joined #ocaml
lolcathost has joined #ocaml
larhat has quit [Quit: Leaving.]
ontologiae has joined #ocaml
cago has joined #ocaml
ontologi1e has joined #ocaml
eikke has joined #ocaml
gasche has joined #ocaml
beckerb has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Kakadu has joined #ocaml
Submarine has quit [Quit: Leaving]
Yoric has joined #ocaml
Xizor has joined #ocaml
larhat has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
destrius has quit [Quit: Leaving.]
ikaros has joined #ocaml
darinm has joined #ocaml
eikke has quit [Ping timeout: 256 seconds]
wagle_ has joined #ocaml
wagle has quit [Ping timeout: 260 seconds]
darinm has left #ocaml []
mika4 has quit [Quit: Leaving.]
<stj>
mbac: arrays don't help, they are slow since we need to load stuff from it
<stj>
orbitz: inline asm is just for floating point precision, that doesn't matter... also count reference is irrelevant since that's not the bottleneck of the program
ontologiae has quit [Quit: leaving]
ontologi1e has quit [Quit: leaving]
ontologiae has joined #ocaml
ontologiae has quit [Client Quit]
ontologiae has joined #ocaml
chambart has joined #ocaml
<stj>
I'll repeat the question since long time has passed: I wonder if it's possible to avoid boxing in this simple function "aux" ... http://pastebin.com/MRfjXiCm
<stj>
I don't really see the need for it, and it would speed up the code a lot
<olasd>
stj: put x and y in a record
hkBst has quit [Ping timeout: 246 seconds]
hkBst has joined #ocaml
fraggle_ has joined #ocaml
<stj>
olasd: if I make a record, then it itself is boxed so it has to be unboxed every time... I gained no speed up this way - it's still the same
andreypopp has joined #ocaml
<orbitz>
stj: did you show that or just assuming?
<Kakadu>
AFAIR there is optimisation when record of floats is compiled like array of floats
<adrien>
thelema: I'm not talking about going to great lengths to optimize but factorizing such stuff isn't difficult and will also help when debugging the output of the generator
<adrien>
anyway, going to bed; wxpython has finished building and I noticed I don't have the pics I wanted to put into a panorama with hugin anymore
UncleVasya has quit [Ping timeout: 256 seconds]
andreypopp has joined #ocaml
eikke has joined #ocaml
mye has quit [Quit: mye]
mye has joined #ocaml
Neros has quit [Ping timeout: 260 seconds]
andreypopp has quit [Quit: sleep]
Catnaroek is now known as lolcathost
emmanuelux has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
Neros has joined #ocaml
Neros has quit [Read error: Connection reset by peer]
tane has joined #ocaml
mye has quit [Ping timeout: 252 seconds]
chambart has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
SanderM has quit [Remote host closed the connection]
Submarine has quit [Quit: Leaving]
gnuvince has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
metasyntax has quit [Quit: WeeChat [quit]]
thelema has quit [Remote host closed the connection]
myx has quit [Ping timeout: 250 seconds]
Yoric has quit [Ping timeout: 246 seconds]
tac has quit [Ping timeout: 245 seconds]
jamii has quit [Read error: Operation timed out]
travisbrady has quit [Quit: travisbrady]
mbac has quit [Quit: leaving]
smondet has quit [Ping timeout: 246 seconds]
<stj>
can I somehow see what options ocamlfind provided to ocamlopt?
<stj>
I use this: ocamlfind ocamlopt -package sdl,sdl.sdlttf,sdl.sdlmixer,sdl sdlloader.cmxa -linkpkg hello.ml -o hello
<stj>
and wondering what would be the command without ocamlfind