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

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

I just now learned about the possibility to read blocks of elements before
some bytes are skipped. Thus, block_size is not necessarily equal to zero. It
seems the code snippet should therefore read


for (int i=0;i<input_buf_elts/block_size;i++)
  for (j=0;j<(input_elt_size*block_size);j++)
   
input_buf[i*(input_elt_size*block_size)+j]=input_buf[i*(input_elt_size*block_size+skip)+j];


    _______________________________________________________

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]