octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51715] pkg.fcn should call function fcn with


From: Rik
Subject: [Octave-bug-tracker] [bug #51715] pkg.fcn should call function fcn with no arguments for Matlab compatibility
Date: Thu, 10 Aug 2017 13:07:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #10, bug #51715 (project octave):

I second that.  Virtual functions usually are implemented as a jump table so
while there is one level of pointer indirection, its still very efficient.  On
the other hand, dynamic_cast requires the runtime environment to do whatever
is necessary to make sure that the object to be converted results in a valid
object of the cast type.  This might mean initializing new member variables,
replacing a virtual function with a new implementation, etc.  The performance
penalty is not well-bounded.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51715>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]