Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!psuvax1!rutgers!mit-eddie!apollo!vinoski
From: vinoski@apollo.HP.COM (Stephen Vinoski)
Newsgroups: comp.lang.c++
Subject: Re: Efficiency of C++ relative to C??
Message-ID: <45e8bdea.13868@apollo.HP.COM>
Date: 28 Sep 89 14:35:00 GMT
References: <16493@watdragon.waterloo.edu> <9924@alice.UUCP> <4102@pegasus.ATT.COM> <2189@hcr.UUCP>
Reply-To: vinoski@zep.UUCP (Stephen Vinoski)
Organization: Apollo Computer, Chelmsford, MA
Lines: 22

I just finished reading

             "A C++ Interpreter for Scheme"
             Vincent F. Russo and Simon M. Kaplan
             Proceedings of the USENIX C++ Conference
             Denver, CO, October 1988
             pp. 95-108

which describes porting a Scheme interpreter written in C to C++ and comparing
the performance of the two.  They found that the C++ version was faster because
it used virtual functions instead of switch statements.

It is an excellent paper - check it out.


-steve


-- 
| Steve Vinoski       | Hewlett-Packard Apollo Div. | ARPA: vinoski@apollo.com |
| (508)256-6600 x5904 | Chelmsford, MA    01824     | UUCP: ...!apollo!vinoski |
| "...She's so cold, pure as the driven slush..."  -ZZ Top                     |