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

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

[Octave-bug-tracker] [bug #59711] Performance of `cd` is bad on Windows


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59711] Performance of `cd` is bad on Windows
Date: Tue, 29 Nov 2022 07:11:35 -0500 (EST)

Update of bug #59711 (project octave):

                  Status:                   Fixed => Confirmed              
             Open/Closed:                  Closed => Open                   
         Planned Release:                    None => 9.1.0 (current default)

    _______________________________________________________

Follow-up Comment #22:

I can confirm a significant difference in the time for loading the ltfat
package between Octave 6.4 and Octave 7.1.

Re-opening report.

I attached a profiler (Very Sleepy). And the bottleneck no longer seems to be
`canonicalize_file_name`, but `stat`.

`stat` is not a native Windows API function. It takes a lot of API calls to
fill the entire stat structure when we are often times only interested in
whether a file exist or whether it is a "simple" file or a directory.

I had a patch lying around somewhere in which I tried to add simple wrappers
to check whether a file or directory exists (which hopefully would perform
better on any platform). I guess it's time to dig that up again, check if it
still applies and maybe try and finish it...


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59711>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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