Browse thread
[Caml-list] Object-oriented access bottleneck
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-12-09 (00:27) |
From: | Nicolas Cannasse <warplayer@f...> |
Subject: | Re: [Caml-list] Object-oriented access bottleneck |
> Any chance of adding an unsafe way to call a method on a class where > the name is only known at runtime? eg. To Obj or Oo? > > Rich. Obj is unsafe, just try something like : Obj.set_field (Obj.repr (Some 0)) 1000000 (Obj.repr ()) But I'm quite surprise that's it's not inlined and slower than setting a record field (according to the bench results)... and even slower than calling method (???) Nicolas Cannasse ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners