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: Tue, 29 Aug 2017 19:01:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

I think it's a cute trick to avoid tolower, but the real test is just to
benchmark it.  One's intuition about these things is often wrong.  

But before checking this, I would reorder things so that the first character
checked is 'N' and in the next step 'A'.  If the value really is NA, this is
the canonical form and it will shortcircuit faster.


octave:1> x = [NA, 1, pi]
x =

       NA   1.0000   3.1416

octave:2> save -ascii blah.txt x


And in blah.txt


 NA 1.00000000e+00 3.14159265e+00




    _______________________________________________________

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]