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

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

[Octave-bug-tracker] [bug #50416] dir command is very slow with large di


From: Rik
Subject: [Octave-bug-tracker] [bug #50416] dir command is very slow with large directories
Date: Mon, 6 Mar 2017 14:24:25 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #50416 (project octave):

                  Status:         Patch Submitted => Fixed                  
             Open/Closed:                    Open => Closed                 
                 Release:                   4.2.1 => dev                    

    _______________________________________________________

Follow-up Comment #5:

I checked in the a change that speeds things up by 2.3X
(http://hg.savannah.gnu.org/hgweb/octave/rev/529c6d0c6684).  That hit the easy
issues of fullfile and fileparts.  I checked in another more complicated
change that arranges to call datenum just once, rather than in every iteration
of the for loop, which gives another ~2X speed up
(http://hg.savannah.gnu.org/hgweb/octave/rev/21fc54e4bb7b).  Overall, the
function is now about 5X faster.

I think that's probably good enough.  The original reporter's time will go
from 728 milliseconds to 145 milliseconds.  That is still well slower than a
compiled C++ function, but well within what a human can tolerate.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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