From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA09289; Tue, 9 Dec 2003 01:27:02 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA05012 for ; Tue, 9 Dec 2003 01:27:01 +0100 (MET) Received: from smtp.siren.ocn.ne.jp (siren.ocn.ne.jp [211.129.13.170]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB90Qx106605 for ; Tue, 9 Dec 2003 01:27:00 +0100 (MET) Received: from PWARP (p6153-ipad04kyoto.kyoto.ocn.ne.jp [219.162.153.153]) by smtp.siren.ocn.ne.jp (Postfix) with SMTP id 5B1671E57; Tue, 9 Dec 2003 09:26:57 +0900 (JST) Message-ID: <006901c3bdeb$252ff510$0274a8c0@PWARP> From: "Nicolas Cannasse" To: "Richard Jones" Cc: References: <871xrhe4hb.fsf@iki.fi> <20031207192702D.garrigue@kurims.kyoto-u.ac.jp> <87brqkcsxf.fsf@iki.fi> <20031208100725E.garrigue@kurims.kyoto-u.ac.jp> <87llpnbb4d.fsf@iki.fi> <20031208154244.GA20491@redhat.com> Subject: Re: [Caml-list] Object-oriented access bottleneck Date: Tue, 9 Dec 2003 09:26:52 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 bottleneck:01 runtime:01 inlined:01 slower:01 slower:01 cannasse:01 unsafe:01 unsafe:01 nicolas:01 nicolas:01 bench:02 obj:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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