Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drupal-mode slows down TRAMP #82

Open
Junker opened this issue Apr 23, 2020 · 1 comment
Open

drupal-mode slows down TRAMP #82

Junker opened this issue Apr 23, 2020 · 1 comment
Assignees

Comments

@Junker
Copy link

Junker commented Apr 23, 2020

when drupal-mode is enabled TRAMP works slow, because drupal-mode searches for system.module, bootstrap.inc and Drupal.php files.
Maybe should make option to disable file check when TRAMP.

TRAMP debug log:
...
14:02:28.534477 tramp-set-file-property (8) # /var/core/lib/Drupal.php file-exists-p nil
14:02:28.535030 tramp-get-file-property (8) # /core/lib/Drupal.php file-exists-p undef
14:02:28.535103 tramp-get-file-property (8) # /core/lib/Drupal.php file-attributes-integer nil
14:02:28.535165 tramp-get-file-property (8) # /core/lib/Drupal.php file-attributes-string nil
...

@xendk
Copy link
Collaborator

xendk commented Apr 24, 2020

Well, drupal-mode is rather dependent on finding those files in order to determine if it is Drupal and the version. I think that removing those checks would cripple drupal-mode.

Could make drupal-mode dependent on file-remote-p returning nil in drupal-mode-bootstrap, but that's probably not what you're looking for. Would need some way of activating drupal-mode for remote files by hand.

drupal-mode could be improved by caching info, reusing info sniffed from other files and only sniff out things when needed, but that requires major re-architecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants