[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: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #59711] Performance of `cd` is bad on Windows |
Date: |
Tue, 19 Jan 2021 14:02:19 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 |
Follow-up Comment #18, bug #59711 (project octave):
rerunning the old ones also to better capture any local variance. looks like
recent build gets times down around where they were in 5.2.0:
Octave 6.1.1, Jan 18 build, ltfat 2.3.1:
>> profile clear; profile on; pkg load ltfat; profile off; profshow
# Function Attr Time (s) Time (%) Calls
---------------------------------------------------------------------
141 cd 0.663 18.65 41
77 addpath R 0.640 18.00 22
117 is_same_file 0.560 15.76 2134
102 dir 0.295 8.30 35
79 ltfatstart 0.234 6.59 1
51 canonicalize_file_name 0.211 5.93 130
142 source 0.177 4.99 20
146 javaMethod 0.163 4.59 3
115 lstat 0.152 4.28 1057
17 regexprep 0.044 1.24 2155
46 installed_packages 0.028 0.78 1
107 strcat 0.027 0.76 35
1 pkg 0.026 0.72 1
135 fileparts 0.024 0.66 20
134 run 0.022 0.62 20
144 blockprocinit 0.020 0.57 1
173 ltfatsetdefaults 0.019 0.55 1
145 javaclasspath 0.016 0.44 1
47 load 0.015 0.43 2
88 exist 0.015 0.42 59
Octave 6.1.1, Jan 07 build, ltfat 2.3.1:
>> profile clear; profile on; pkg load ltfat; profile off; profshow
# Function Attr Time (s) Time (%) Calls
---------------------------------------------------------------------
141 cd 2.171 36.98 41
77 addpath R 1.411 24.03 22
117 is_same_file 0.598 10.19 2134
102 dir 0.272 4.63 35
142 source 0.231 3.94 20
79 ltfatstart 0.230 3.91 1
51 canonicalize_file_name 0.216 3.67 130
146 javaMethod 0.161 2.74 3
115 lstat 0.154 2.63 1057
17 regexprep 0.045 0.77 2155
47 load 0.031 0.52 2
135 fileparts 0.026 0.45 20
134 run 0.025 0.43 20
45 load_packages 0.023 0.39 1
107 strcat 0.019 0.33 35
46 installed_packages 0.017 0.28 1
1 pkg 0.016 0.27 1
88 exist 0.015 0.26 59
106 readdir 0.012 0.21 35
139 rindex 0.012 0.20 20
Octave 6.1.0, ltfat 2.3.1:
>> profile clear; profile on; pkg load ltfat; profile off; profshow
# Function Attr Time (s) Time (%) Calls
-----------------------------------------------------------------------------
139 cd 8.990 40.88 41
74 addpath R 6.839 31.10 22
113 lstat 2.454 11.16 1057
115 is_same_file 0.542 2.46 2134
100 dir 0.493 2.24 35
140 source 0.479 2.18 20
76 ltfatstart 0.418 1.90 1
85 exist 0.209 0.95 59
27 canonicalize_file_name 0.206 0.94 130
144 javaMethod 0.173 0.78 3
70 stat 0.130 0.59 59
133 fileparts 0.123 0.56 20
132 run 0.115 0.52 20
104 readdir 0.115 0.52 35
103 __wglob__ 0.089 0.40 35
105 strcat 0.071 0.32 35
137 rindex 0.062 0.28 20
58 regexprep 0.045 0.21 2152
49 load_packages_and_dependencies 0.041 0.19 1
20 load_packages 0.037 0.17 1
Octave 5.2.0, ltfat 2.3.1:
>> profile clear; profile on; pkg load ltfat; profile off; profshow
# Function Attr Time (s) Time (%) Calls
---------------------------------------------------------------------
134 cd 0.708 30.96 41
72 addpath R 0.484 21.19 21
97 dir 0.292 12.78 35
110 lstat 0.177 7.73 1057
139 javaMethod 0.162 7.08 3
74 ltfatstart 0.046 2.02 1
135 source 0.042 1.82 20
85 regexp 0.038 1.68 1058
112 canonicalize_file_name 0.033 1.44 36
127 run 0.019 0.84 20
17 regexprep 0.019 0.82 1099
128 fileparts 0.019 0.81 20
83 exist 0.018 0.79 59
46 load 0.017 0.73 2
102 strcat 0.017 0.73 35
126 arrayfun 0.014 0.61 35
101 readdir 0.012 0.54 35
100 __wglob__ 0.012 0.51 35
113 localtime 0.010 0.45 1057
68 stat 0.010 0.44 59
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59711>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/