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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow
Date: Wed, 13 Jun 2018 16:29:41 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

References are always valid.  the "if (! is)" checks whether the stream state
is still good.

Coprocessor?  We are talking about an integer division here...

But in any case, I'm pretty sure that any compiler we use is going to move an
expression out of the loop if possible, so I don't think that's a serious
issue, though defining a separate variable with a meaningful name might be
useful.

I apologize if this code is convoluted, but it was the best I could do the
last time I looked at speeding it up and making it do all the correct things
with regard to skipping bytes, reading different types of values, and
transforming them to the final requested types.

Since compatibility is also important here, maybe it would be best to start
with trying to write some more comprehensive tests before overhauling the code
for speed?


    _______________________________________________________

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]