[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong num
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers |
Date: |
Tue, 11 Jan 2022 09:33:17 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Android 11; Mobile; rv:95.0) Gecko/95.0 Firefox/95.0 |
Follow-up Comment #3, bug #61788 (project octave):
I did some benchmarking in standalone C++ with the two variants (base + i *
increment) and (preceding value + increment). The serial version is slower but
by such a tiny amount that it is viable. Over 1e9 iterations, the first loop
took 0.14 seconds and the second took 0.28 seconds, which might look like
half-speed but it's only 0.14 nanoseconds per iteration, so even for a range
with say 1e7 elements, it slows down only by 1.4 milliseconds.
@jwe: does the change have to be done only in Range.h and Range.cc or are
there other locations too?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61788>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Hartmut, 2022/01/10
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, John W. Eaton, 2022/01/10
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Arun Giridhar, 2022/01/10
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers,
Arun Giridhar <=
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, John W. Eaton, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Arun Giridhar, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Arun Giridhar, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, John W. Eaton, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, John W. Eaton, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Arun Giridhar, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Arun Giridhar, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Markus Mützel, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, John W. Eaton, 2022/01/11
- [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers, Rik, 2022/01/11