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

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

[Octave-bug-tracker] [bug #61674] deconv much slower than conv


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #61674] deconv much slower than conv
Date: Wed, 15 Dec 2021 22:11:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Follow-up Comment #7, bug #61674 (project octave):

Try patch 3, but this isn't fast. It's not as slow as the original code but
it's 3 times slower than patch 1 or patch 2.

It turns out that even if octave_quit is never called based on the value of
count, simply adding the code to call it prevents the compiler from optimizing
the loop internals, and it slows by 3X compared to patch 1 and patch 2. Tuning
the value of count does not help in this case: making it big or small gives
the same slow performance.

Is there a better way to handle the conflicting goals of performance and
interruption handling than to call a function from inside a for loop?

(file #52512)
    _______________________________________________________

Additional Item Attachment:

File name: filter_v3.patch                Size:2 KB
    <https://file.savannah.gnu.org/file/filter_v3.patch?file_id=52512>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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