Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner From: braner@batcomputer.TN.CORNELL.EDU (braner) Newsgroups: net.lang.c++,net.micro.atari16 Subject: Re: Re.: C++ preprocessor wanted Message-ID: <1213@batcomputer.TN.CORNELL.EDU> Date: Wed, 15-Oct-86 10:47:20 EDT Article-I.D.: batcompu.1213 Posted: Wed Oct 15 10:47:20 1986 Date-Received: Thu, 16-Oct-86 05:55:40 EDT References: <6174@alice.uUCp> Reply-To: braner@batcomputer.UUCP (braner) Organization: Theory Center, Cornell University, Ithaca NY Lines: 15 Summary: function call overhead reviewed Xref: mnetor net.lang.c++:369 net.micro.atari16:2503 [] If 100000 calls take 4 seconds, that's 40 uS per call, not 4. BTW, the 100 uS time I mentioned is for sending a method-token to an object, complete with the lookup and the late binding. And it is on the Atari ST. For comparision, a standard C function call (passing an integer both ways) has a 25 uS overhead, approximately. Of course, any useful function (or method) would take at least another 20 uS to do its thing, and usually a lot longer. - Moshe Braner PS: I got many requests for the Object-Oriented C Programming. I'll prepare a posting, one of these days.