drupal-mode icon indicating copy to clipboard operation
drupal-mode copied to clipboard

drupal-mode slows down TRAMP

Open Junker opened this issue 4 years ago • 1 comments

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 ...

Junker avatar Apr 23 '20 07:04 Junker

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.

xendk avatar Apr 24 '20 10:04 xendk