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

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

[Octave-bug-tracker] [bug #59679] Overhead in calling function handles


From: anonymous
Subject: [Octave-bug-tracker] [bug #59679] Overhead in calling function handles
Date: Mon, 14 Dec 2020 01:18:11 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:68.9) Gecko/20100101 Goanna/4.6 Firefox/68.9 Mypal/28.14.2

URL:
  <https://savannah.gnu.org/bugs/?59679>

                 Summary: Overhead in calling function handles
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 14 Dec 2020 06:18:09 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Currently calling a function handle follows these simplified steps:


handle.subsref (arglist) -->

  handle.call (auto& args=arglist.front ()) -->

    feval (handle.m_fcn, args) -->

      handle.m_fcn.subsref (arglist=make_list (args)) -->

        handle.m_fcn.call (arglist.front ())


It may be more efficient to follow these steps:


handle.subsref (arglist) -->

  handle.call (auto& args=arglist.front ()) -->

    handle.m_fcn.call (args)





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59679>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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