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

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

[Octave-bug-tracker] [bug #51871] loading '-ascii' format files is slow


From: Rik
Subject: [Octave-bug-tracker] [bug #51871] loading '-ascii' format files is slow
Date: Thu, 31 Aug 2017 14:50:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

Given that opening in binary and processing character by character is going to
be slow, can we detect the file format before processing?  If so, the function
std::getline has a form which uses whatever delimiter you like


istream& getline (istream& is, string& str, char delim);


This speed-up patch could then be only minimally modified.

The obvious test would be to peek into the first, say 255 bytes, of the file
and see if we find a line ending.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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