[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (a
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))" |
Date: |
Tue, 29 Nov 2022 15:25:56 -0500 (EST) |
Follow-up Comment #7, bug #63444 (project octave):
Beware the cost of checking the reference count with the "A(i)" indexing. You
might want to avoid that by using "const NDArray A = ..." or by using
"args(1).array_value().data()".
Also, how smart is GCC these days? Does it compile the two-loop case to be
essentially the same as the single loop? What happens if each loop in the two
loop case is defined in a separate function as I think we have in Octave?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63444>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", John W. Eaton, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", John W. Eaton, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))",
John W. Eaton <=
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", Rik, 2022/11/29
- [Octave-bug-tracker] [bug #63444] "if (COND)" is much slower than "if (all (COND))", John W. Eaton, 2022/11/29