diff options
author | Gemini Lasswell <gazally@runbox.com> | 2017-08-30 07:11:41 -0700 |
---|---|---|
committer | Gemini Lasswell <gazally@runbox.com> | 2017-09-09 09:06:00 -0700 |
commit | 68b7ecbac1dcb5bfcace5505a4d354777147dd54 (patch) | |
tree | 3b9875c47e0deeac4e5a029369381edd69a4cf44 /lib/count-trailing-zeros.h | |
parent | 2b84c1666274edcb6b810649fa0d6fc09e9e7a66 (diff) | |
download | emacs-68b7ecbac1dcb5bfcace5505a4d354777147dd54.tar.gz emacs-68b7ecbac1dcb5bfcace5505a4d354777147dd54.tar.bz2 emacs-68b7ecbac1dcb5bfcace5505a4d354777147dd54.zip |
Reduce Tramp's memory usage
Construct Tramp syntax strings and regular expressions once instead
of every time they are used, and store them in alists keyed by Tramp
syntax.
* tramp.el (tramp-build-remote-file-name-spec-regexp)
(tramp-build-file-name-structure): New functions.
(tramp-prefix-format-alist, tramp-prefix-regexp-alist)
(tramp-method-regexp-alist)
(tramp-postfix-method-format-alist)
(tramp-postfix-method-regexp-alist)
(tramp-prefix-ipv6-format-alist, tramp-prefix-ipv6-regexp-alist)
(tramp-postfix-ipv6-format-alist)
(tramp-postfix-ipv6-regexp-alist)
(tramp-postfix-host-format-alist)
(tramp-postfix-host-regexp-alist)
(tramp-remote-file-name-spec-regexp-alist)
(tramp-file-name-structure-alist): New constants.
(tramp-lookup-syntax): New function.
(tramp-prefix-format, tramp-prefix-regexp, tramp-method-regexp)
(tramp-postfix-method-format, tramp-postfix-method-regexp)
(tramp-prefix-ipv6-format, tramp-prefix-ipv6-regexp)
(tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp)
(tramp-postfix-host-format, tramp-postfix-host-regexp)
(tramp-remote-file-name-spec-regexp, tramp-file-name-structure):
Use it.
Diffstat (limited to 'lib/count-trailing-zeros.h')
0 files changed, 0 insertions, 0 deletions