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

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

[Octave-bug-tracker] [bug #43327] dir function is too slow


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #43327] dir function is too slow
Date: Thu, 02 Oct 2014 19:06:26 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0

Follow-up Comment #5, bug #43327 (project octave):

I don't know that vectorizing stat/lstat would help much. The profiler tells
me that dir.m itself accounts for about 18% of the runtime on a large
directory, with other big contributors being datenum, strchr, strjoin,
fileparts, fullfile, and repmat. I completely stubbed out the calls to lstat
inside the file loop and there was no improvement at all. So unless you mean
replacing the entire file loop with a single call that populates the entire
info struct array formatted correctly, I don't see how pulling out stat/lstat
alone would help much.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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