-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have often found -inline 10 to be faster than -inline 100. But YMMV,
Peng On Saturday 01 November 2008 10:52:49 pm Michał C wrote: > Hi! > > I'm working on a physical based ray(path) tracer and the performance > is one of my top priorities (just after the image quality). > So I have a question about optimization: can You share some tips or > maybe optimizing strategies to improve the speed of programs? > > here is my code: http://neos1.ovh.org/ray3.ml, > > and here is how I compile it: > ocamlopt -inline 100 -unsafe -ffast-math str.cmxa -I +lablgl > lablgl.cmxa lablglut.cmxa -o ray ray.ml > > Maybe You can take a look, sure I don't expect You to look through it > in some hardcore way, but You know, maybe there are some obvious > mistakes or unnecessary boxing which will spot your eye. > > Thanks in advance, > oh and if you possibly want to see the development or how the program > works - http://neos1.wordpress.com > > Regards > > _______________________________________________ > 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFJDZu5fIRcEFL/JewRAikYAJ4qaO/HbPoVVP9xl3bCoYc0A17vlwCfbFyJ tkVitQkbANKQYhDxM2lfNQc= =2ycS -----END PGP SIGNATURE----- _______________________________________________ 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