unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Slow access to files using UNC path
@ 2004-09-01  5:47 Dhruva Krishnamurthy
  2004-09-01  6:31 ` KOBAYASHI Yasuhiro
  0 siblings, 1 reply; 58+ messages in thread
From: Dhruva Krishnamurthy @ 2004-09-01  5:47 UTC (permalink / raw)
  Cc: KOBAYASHI Yasuhiro, Stefan Monnier, Andre Spiegel

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

Hello,
 This is a modified patch (original patch from Mr.KOBAYASHI Yasuhiro)
including Stefan Monnier's suggested regexp. I do not know where to
add the defvar "vc-hostname-fs-path-re" (currently, I have added in
vc-arch.el as autoloads of vc-arch.el appears before vc-mcvs.el in
loaddefs.el. I know this is error prone assumption, this is the best I
could do due to technical limitations) and this should be fixed. This
could also be a defcustom (I am no expert, just a suggestion).
I have tested this patch and it works fine and does what it is
intended to do. I request the patch to be reviewed and someone with
write access to CVS to kindly apply the patch after suitable
modifications to place the definition & default
"vc-hostname-fs-path-re" correctly.

with best regards,
dhruva

-- 
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/

[-- Attachment #2: unc.patch --]
[-- Type: application/octet-stream, Size: 1729 bytes --]

*** d:/tmp/cvs/emacs/lisp/vc-arch.el	2004-07-04 14:55:35.031250000 +0530
--- vc-arch.el	2004-09-01 10:45:49.573425500 +0530
***************
*** 71,81 ****
--- 71,84 ----
  ;; new functions when we reload this file.
  (put 'Arch 'vc-functions nil)
  
+ ;;;###autoload (defvar vc-hostname-fs-path-re "\\`\\([\\/][\\/]\\|/net/\\|/afs/\\)" "Regular expression to identify remote folders")
  ;;;###autoload (defun vc-arch-registered (file)
  ;;;###autoload   (let ((dir file))
  ;;;###autoload     (while (and (stringp dir)
  ;;;###autoload                 (not (equal
  ;;;###autoload                       dir (setq dir (file-name-directory dir))))
+ ;;;###autoload                 ;; Avoid searching no existing computer on Windowz.
+ ;;;###autoload                 (not (string-match vc-hostname-fs-path-re dir))
  ;;;###autoload                 dir)
  ;;;###autoload       (setq dir (if (file-directory-p
  ;;;###autoload                      (expand-file-name "{arch}" dir))
*** d:/tmp/cvs/emacs/lisp/vc-mcvs.el	2004-05-31 14:05:26.938250000 +0530
--- vc-mcvs.el	2004-09-01 10:42:08.593468500 +0530
*************** This is only meaningful if you don't use
*** 118,123 ****
--- 118,125 ----
  ;;;###autoload     (while (and (stringp dir)
  ;;;###autoload                 (not (equal
  ;;;###autoload                       dir (setq dir (file-name-directory dir))))
+ ;;;###autoload                 ;; avoid searching no existing computer on Windowz.
+ ;;;###autoload                 (not (string-match vc-hostname-fs-path-re dir))
  ;;;###autoload                 dir)
  ;;;###autoload       (setq dir (if (file-directory-p
  ;;;###autoload                      (expand-file-name "MCVS/CVS" dir))

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 58+ messages in thread
* Re: Slow access to files using UNC path
@ 2004-07-18  9:29 Dhruva Krishnamurthy
  0 siblings, 0 replies; 58+ messages in thread
From: Dhruva Krishnamurthy @ 2004-07-18  9:29 UTC (permalink / raw)


Hi,
 Based on some inputs from dak/eliz and some extra digging into Elisp, I
 have the following version which can show good improvements in the
 behaviour from user point of view (in comparision wrt XEmacs).

I have this modified version in my _emacs file:
      ;; For faster opening of files with UNC path
      (defadvice find-file (before find-file-unc first activate)
        "Open file literally if UNC path for better performance"
        (let ((file (replace-regexp-in-string "\\\\" "/" (ad-get-arg
        0))))
          (if (string-match "^//" file)
              (cond ((find-file-literally file)
                     (set-auto-mode)))))) ; Guess the mode

with best regards,
dhruva
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/

^ permalink raw reply	[flat|nested] 58+ messages in thread
* Slow access to files using UNC path
@ 2004-07-16 11:40 Dhruva Krishnamurthy
  2004-07-16 13:22 ` Peter Lee
  0 siblings, 1 reply; 58+ messages in thread
From: Dhruva Krishnamurthy @ 2004-07-16 11:40 UTC (permalink / raw)


Hello,
 I find accessing a file using UNC path using GNU Emacs (CVS Head, W2K
 and MinGW32 build) very slow when compared to XEmacs. Has anyone
 experienced the same and explored the reason?
 Since I work with computers on LAN, I frequently access files using UNC
 path and end up waiting for significant duration of time. Looking
 forward to see a solution for this problem.

with best regards,
dhruva
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/

^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2004-09-23 13:12 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-01  5:47 Slow access to files using UNC path Dhruva Krishnamurthy
2004-09-01  6:31 ` KOBAYASHI Yasuhiro
2004-09-01  6:42   ` Andre Spiegel
2004-09-01  9:50     ` Dhruva Krishnamurthy
2004-09-01 10:22       ` Dhruva Krishnamurthy
2004-09-01 12:13         ` Andreas Schwab
2004-09-01 13:15           ` Dhruva Krishnamurthy
2004-09-01 13:27             ` Andreas Schwab
2004-09-01 14:31               ` Stefan Monnier
2004-09-08  6:49     ` Dhruva Krishnamurthy
2004-09-08  8:18       ` Kim F. Storm
2004-09-08  8:41         ` Miles Bader
2004-09-08  8:53         ` Dhruva Krishnamurthy
2004-09-08 11:55         ` Stefan
2004-09-08 13:00           ` Dhruva Krishnamurthy
2004-09-08 16:44             ` Stefan Monnier
     [not found]               ` <m3656ov3ps.fsf@kfs-l.imdomain.dk>
     [not found]                 ` <68c73b1a040908220473b70936@mail.gmail.com>
     [not found]                   ` <68c73b1a04090823245a5d027c@mail.gmail.com>
     [not found]                     ` <jwvk6v3yytf.fsf-monnier+emacs@gnu.org>
     [not found]                       ` <jwv4qm7yxkx.fsf-monnier+emacs@gnu.org>
2004-09-13  6:50                         ` Dhruva Krishnamurthy
2004-09-13 12:39                           ` Stefan Monnier
2004-09-18 11:53                             ` Romain Francoise
2004-09-18 18:38                               ` Stefan
2004-09-18 20:19                                 ` Romain Francoise
2004-09-18 19:00                               ` Adrian Aichner
2004-09-18 20:09                                 ` Romain Francoise
2004-09-19  3:44                                   ` Damien Elmes
2004-09-19  7:01                                     ` Stefan
2004-09-19  7:25                                       ` Damien Elmes
2004-09-20  0:05                                         ` Richard Stallman
2004-09-20  5:28                                         ` Stefan
2004-09-21 23:46                                           ` Damien Elmes
2004-09-22 12:59                                             ` Stefan Monnier
2004-09-23 12:50                                               ` Damien Elmes
2004-09-23 13:12                                                 ` Stefan
2004-09-09  4:03           ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-07-18  9:29 Dhruva Krishnamurthy
2004-07-16 11:40 Dhruva Krishnamurthy
2004-07-16 13:22 ` Peter Lee
2004-07-17 13:23   ` Dhruva Krishnamurthy
2004-07-17 18:00     ` Andreas Schwab
2004-07-18  2:31       ` David Kastrup
2004-07-18  5:09         ` Eli Zaretskii
2004-07-18  6:12           ` Dhruva Krishnamurthy
2004-07-18  9:53             ` Andreas Schwab
2004-07-18 19:41             ` Eli Zaretskii
2004-07-19  4:35               ` Dhruva Krishnamurthy
2004-07-19 19:09                 ` Eli Zaretskii
2004-08-25  9:44                   ` KOBAYASHI Yasuhiro
2004-08-26  4:36                     ` Dhruva Krishnamurthy
2004-08-26  7:10                       ` KOBAYASHI Yasuhiro
2004-08-26  8:50                         ` Dhruva Krishnamurthy
2004-08-26 20:52                           ` Richard Stallman
2004-08-27  3:59                             ` Dhruva Krishnamurthy
2004-08-27 13:19                               ` Stefan Monnier
2004-08-30  4:46                                 ` Dhruva Krishnamurthy
2004-08-30  5:11                                 ` Dhruva Krishnamurthy
2004-08-30  8:32                                   ` Andreas Schwab
2004-08-30  9:27                                     ` Dhruva Krishnamurthy
2004-07-18  9:49         ` Andreas Schwab
2004-07-18 10:04           ` Dhruva Krishnamurthy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).