Hi Michael,
thanks for the patch, I tried it out. Unfortunately it does not help.
Here are the new measurements:
tramp-smb-file-name-handler 332 13.663383000 0.0411547680
tramp-smb-handle-file-local-copy 1 6.814127 6.814127
tramp-smb-send-command 1 6.81183 6.81183
tramp-smb-wait-for-output 1 6.811686 6.811686
tramp-accept-process-output 7 6.8113620000 0.9730517142
accept-process-output 7 0.805556 0.1150794285
tramp-smb-file-name-p 332 0.0028720000 8.650...e-06
tramp-smb-handle-expand-file-name 97 0.0021810000 2.248...e-05
tramp-smb-handle-file-writable-p 2 0.001121 0.0005605
tramp-smb-handle-file-attributes 36 0.0010399999 2.888...e-05
tramp-smb-handle-file-directory-p 1 0.000625 0.000625
tramp-smb-get-file-entries 1 0.000104 0.000104
tramp-smb-maybe-open-connection 1 0.000103 0.000103
tramp-smb-get-stat-capability 1 3.4e-05 3.4e-05
tramp-smb-get-localname 1 2.9e-05 2.9e-05
tramp-smb-get-share 2 1.300...e-05 6.500...e-06
tramp-smb-get-cifs-capabilities 1 1.3e-05 1.3e-05
I noticed, that the line numbers in the patch are significantly
different from the ones I got. I used the tramp version delivered with
Emacs 24.2,
so the line numbers, where I applied the patch, are 1375 and 1389.
Should I upgrade to the most recent version of tramp and try again?
Best Regards,
Martin
On 22/10/12 15:47, Michael Albinus wrote:
Martin Apel <[email protected]> writes:
Hi Michael,
Hi Martin,
that's great. At least this shows, that it has nothing to do with my
environment.
Yep.
The following patch is the best I could get so far. Please set also
`tramp-verbose' to its default value 3, when you count elapsed
time. Writing Tramp traces decreases the performance.
Could you, please, check how it works for you?
--8<---------------cut here---------------start------------->8---
*** ~/tramp/lisp/tramp-smb.el.~2.160~ 2012-10-22 15:41:05.109437286 +0200
--- ~/tramp/lisp/tramp-smb.el 2012-10-22 14:07:47.416726439 +0200
***************
*** 1717,1723 ****
(while (and (not found) (not err) (memq (process-status p) '(run
open)))
;; Accept pending output.
! (tramp-accept-process-output p)
;; Search for prompt.
(goto-char (point-min))
--- 1717,1723 ----
(while (and (not found) (not err) (memq (process-status p) '(run
open)))
;; Accept pending output.
! (tramp-accept-process-output p 0.1)
;; Search for prompt.
(goto-char (point-min))
***************
*** 1731,1737 ****
(while (and (not found) (memq (process-status p) '(run open)))
;; Accept pending output.
! (tramp-accept-process-output p)
;; Search for prompt.
(goto-char (point-min))
--- 1731,1737 ----
(while (and (not found) (memq (process-status p) '(run open)))
;; Accept pending output.
! (tramp-accept-process-output p 0.1)
;; Search for prompt.
(goto-char (point-min))
--8<---------------cut here---------------end--------------->8---
Best Regards,
Martin
Best regards, Michael.
--
Martin Apel
Software Architect
Phone: + 49 8105 77266-53
E-Mail: [email protected]
SIMPACK AG
Friedrichshafener Strasse 1, 82205 Gilching, Germany
[email protected], www.simpack.com
Phone: + 49 8105 77266-0
Fax: + 49 8105 77266-11
Executive Board: Dr. Alexander Eichberger, Dr. Lutz Mauer
Chair of Supervisory Board: Silvia Förster (CPA)
Commercial Register München HRB 181 229
____________
Virus checked by G Data AntiVirus
Version: AVA 22.6484 dated 23.10.2012
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel