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: Carnë Draug
Subject: [Octave-bug-tracker] [bug #50416] dir command is very slow with large directories
Date: Tue, 28 Feb 2017 17:41:47 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #50416 (project octave):

> Looking in dir.m I see a loop (bad) that uses fullfile. 
> Since the directory portion 'fn' is always being pre-pended it would be
faster to use strcat here. 
> [...]
> This was only a quick test, you might need to actually convert 'fn' to a
proper directory using fullfile just once, and then use strcat, but the result
is basically sound. 

Actually, fullfile can take a cell array of filenames directly.

    _______________________________________________________

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]