Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: sjc@netcom.com (Steven Correll)
Subject: Virtual functions (was Re: Final kick at the "Merced Guessing Game")
Date: 1997/10/03	[thread overview]
Message-ID: <sjcEHGouF.9F4@netcom.com> (raw)
In-Reply-To: 610gbg$k3t@deadzone.rsn.hp.com


In article <610gbg$k3t@deadzone.rsn.hp.com>,
Patrick F. McGehearty  <patrick@convex.COM> wrote:
>On the C++ virtual function issue, what is needed is more training of C++
>programmers to avoid inefficient constructs except when they are really
>necessary, and to provide whatever language advisories possible to help the
>compiler along...
>Virtual functions that cannot be optimized to static addresses at compile or
>link time are the enemy of performance, and future processor speed
>improvements will only make situation more extreme.

Telling C++ programmers in 1997 to avoid virtual functions because they
make the program run slower is a lot like telling Fortran programmers
in 1970 to avoid subroutine calls for that same reason. They are all
too likely to follow your advice, and given the choice of maintaining a
ten-year-old C++ program with "virtual" missing from most but not all
of its functions, versus a twenty-year-old Fortran program which was
written as a single 100000 line subroutine, I might choose the Fortran
program--at least it's provably possible to restructure it based solely
on static information. But probably I'd just look for a new line of
work, like clearing stuck toilets.
-- 
Steven Correll == PO Box 66625, Scotts Valley, CA 95067 == sjc@netcom.com



  parent reply	other threads:[~1997-10-03  4:00 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-30  4:00 Final kick at the "Merced Guessing Game" Paul DeMone
1997-09-30  4:00 ` Guy Harris
1997-10-01  4:00   ` Tom Thornhill
1997-10-01  4:00 ` Richard A. Schumacher
1997-10-01  4:00 ` Tom Thornhill
1997-10-01  4:00   ` Paul DeMone
1997-10-01  4:00   ` Jim Hull
1997-10-01  4:00 ` Nick Maclaren
1997-10-01  4:00   ` Paul DeMone
1997-10-01  4:00   ` J. Corbally
1997-10-01  4:00     ` Nick Maclaren
1997-10-01  4:00       ` Ketil Z Malde
1997-10-01  4:00         ` Michael D. Nahas
1997-10-01  4:00           ` Stefan Monnier
1997-10-01  4:00             ` Nick Maclaren
1997-10-01  4:00               ` P Murray
1997-10-01  4:00                 ` Nick Maclaren
1997-10-02  4:00                   ` Vesa Karvonen
1997-10-02  4:00                     ` Joseph H Allen
1997-10-02  4:00                       ` Wilco Dijkstra
1997-10-03  4:00                         ` Stefan Monnier
1997-10-03  4:00                         ` Jason.Ozolins
1997-10-03  4:00                           ` Alex Colvin
1997-10-06  4:00                             ` Richard A. O'Keefe
1997-10-08  4:00                               ` Zalman Stern
1997-10-03  4:00                       ` Stefan Monnier
1997-10-02  4:00                   ` Andrew Glew
1997-10-02  4:00                 ` Torben AEgidius Mogensen
1997-10-02  4:00                   ` Patrick F. McGehearty
1997-10-02  4:00                     ` brianh
1997-10-03  4:00                     ` Steven Correll [this message]
1997-10-03  4:00                     ` Michael Williams
1997-10-01  4:00               ` John Wilson
1997-10-01  4:00               ` Allen Kim
1997-10-02  4:00               ` Jon Leech
1997-10-02  4:00               ` Stefan Monnier
1997-10-03  4:00                 ` Richard A. O'Keefe
1997-10-03  4:00               ` Mike Smith
1997-10-03  4:00                 ` Nick Maclaren
1997-10-03  4:00                   ` Rob Barris
1997-10-03  4:00                     ` Andrew Glew
1997-10-05  4:00                       ` Gianni Mariani
1997-10-04  4:00                     ` Nick Maclaren
1997-10-04  4:00                       ` H. Eckert
1997-10-05  4:00                       ` Andy "Krazy" Glew
1997-10-06  4:00                         ` Nick Maclaren
1997-10-01  4:00           ` brianh
1997-10-02  4:00           ` Eric Hildum
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox