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: Dan Sebald
Subject: [Octave-bug-tracker] [bug #51871] loading '-ascii' format files is slow
Date: Sun, 26 Nov 2017 13:55:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

"With that, I think there isn't too much more inefficiency that can be
squeezed out of this one"

Ah, not exactly.  The


  std::istream::sentry se(is, true);


can be moved outside of the getline_alleol_sanscomment() function and just
called once prior to the do loops scanning every line.  It saves a few
percentage points, time-wise, but that is no longer a drop-in replacement for
getline(), so I didn't include that in the speed-up-load-ascii-v8.patch patch.

    _______________________________________________________

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]