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

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

[Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is e


From: Rik
Subject: [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow
Date: Sun, 29 Jul 2018 13:12:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #20, bug #54100 (project octave):

Recall that until recently, octave_idx_type was declared as int which on most
platforms is just 32-bits long.  With one bit reserved for indicating
overflow, that is 2^31 elements.  It's actually reasonably easy to overflow
either the index type (> 2GB text file (char)) or memory (16 GB data file of
doubles).  Although we now default to a 64-bit index type, it may not be
available on all planforms (some smaller ARM RISC chips for example) or the
user may have configured octave with --disable-64.  Hence, I think the tests
for overflow need to remain, but they probably should be updated as you
suggest so the tests themselves are accurate and don't overflow.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54100>

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




reply via email to

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