Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Object-oriented access bottleneck
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 Archives:
Bug reports: FAQ:
Beginner's list: