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: Petr Belyaev
Subject: [Octave-bug-tracker] [bug #43327] dir function is too slow
Date: Thu, 02 Oct 2014 14:39:33 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0

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

I've fixed the help info text and added the statinfo member, so now it should
look 1-to-1 like the original dir. Well, it became a bit slower because of
stat, but it's still like 100 times faster compared to dir.

About attaching the file - i've tried doing it, and i'll try to do it again
from the different browser, but it just fails to attach, i don't know why. But
even if it fails to become attached again, i've updated the external one on
pastebin.

About tests - sorry, but i didn't found any test for the original dir.
There're some tests for readdir and mkdir/rmdir, but there's nothing about the
dir in either 'test/' dir or the 'dir.m' file

Also, please, if there's a better way to use stat/Fstat/mk_stat_map/anything
for statinfo inside the function - let me know. I didn't want to copy the
whole mk_stat_map (which is static inside syscalls.cc), so it went in a quite
ugly way, maybe

(file #32213)
    _______________________________________________________

Additional Item Attachment:

File name: dir2.patch                     Size:6 KB


    _______________________________________________________

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]