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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61674] deconv much slower than conv
Date: Thu, 16 Dec 2021 08:58:32 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36 Edg/96.0.1054.53

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

Not sure if this will make a difference. But have you tried to create an inner
loop without `if` conditionals and an outer loop that contains the octave_quit
function call?
Something along the lines of

int some_big_number = 100000;
int n_inner_loop = 1000;
for (int i_outer = 0, i_outer < some_big_number/n_inner_loop, i_outer++)
{
  for (int i_inner = 0, i_inner < n_inner_loop, i_inner++)
  {
     do_the_actual_work
  }

  octave_quit ();
}


Obviously, we'd need to put a little bit more thought in to get the number of
inner loop runs correct. But maybe that would allow the compiler to optimize
the inner loop while still having the outer loop interruptible...

    _______________________________________________________

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]