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

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

[Octave-bug-tracker] [bug #64962] Avoid unessecary copy of dim_vector


From: Petter
Subject: [Octave-bug-tracker] [bug #64962] Avoid unessecary copy of dim_vector
Date: Sat, 2 Dec 2023 09:19:26 -0500 (EST)

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

                 Summary: Avoid unessecary copy of dim_vector
                   Group: GNU Octave
               Submitter: petter
               Submitted: Sat 02 Dec 2023 02:19:24 PM 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: dev
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 02 Dec 2023 02:19:24 PM UTC By: Petter <petter>

There is only a need of one copy in the first case and
none in the second.

* mx-inlinces.cc: Use ref to avoid copies.


A dim_vector ctor uses malloc, which slows things down quite a lot when using
do_mm_binary_op() or do_mm_inplace_op(), for small matrices.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Sat 02 Dec 2023 02:19:24 PM UTC  Name: octave_32768.patch  Size: 1KiB  
By: petter

<http://savannah.gnu.org/bugs/download.php?file_id=55388>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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