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

[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/




reply via email to

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