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 16:59:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #51871 (project octave):

                  Status:                    None => Confirmed              
                 Summary: load ascii-based numeric file is significantly slow
=> loading '-ascii' format files is slow

    _______________________________________________________

Follow-up Comment #4:

Just to give an idea of what is possible, I created the large variable 'a' and
saved it both in an ascii file and in Octave's own text format with


save ('-text', 'odat.txt', 'a');


Benchmarking the read shows that ASCII files load ~4X slower than even regular
text files.


tic; b = load ('dat.txt'); toc
Elapsed time is 4.86173 seconds.
clear b
tic; b = load ('odat.txt'); toc
Elapsed time is 1.13398 seconds.




    _______________________________________________________

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]