Permalink
Browse files

Performance improvement for Windows

  • Loading branch information...
1 parent e8db040 commit 678a0dd3d15af4dc1581b91b4418cf7f0268e146 @xeno-by committed Oct 11, 2011
Showing with 28 additions and 14 deletions.
  1. +4 −4 bootstrapper.el
  2. +3 −0 editor/autosave.el
  3. +1 −1 editor/external.el
  4. +5 −2 editor/lines.el
  5. +7 −6 editor/scrolling.el
  6. +6 −1 solutions/common.el
  7. +2 −0 xplatform/windows/speedup.el
View
@@ -21,8 +21,8 @@
(linux (load-file (concat (file-name-directory load-file-name) "/" "xplatform" "/" "linux" "/" "bootstrapper.el")))
(t (error "unsupported operating system")))
-(load-all-files-from-dir (concat emacs-root "/" "utils"))
-(load-all-files-from-dir (concat emacs-root "/" "editor"))
-(load-all-files-from-dir (concat emacs-root "/" "other"))
-(load-file (concat emacs-root "/" "solutions" "/" "bootstrapper.el"))
+(load-all-files-from-dir (concat emacs-root "/" "utils")) ;; this is okay for performance, nothing top-level here
+(load-all-files-from-dir (concat emacs-root "/" "editor")) ;; this is okay for performance, i only had to disable linum-mode
+(load-all-files-from-dir (concat emacs-root "/" "other")) ;; scala-mode lags, but only once per buffer. i believe, this has to do with syntax coloring
+;;(load-file (concat emacs-root "/" "solutions" "/" "bootstrapper.el"))
View
@@ -0,0 +1,3 @@
+(setq auto-save-interval 0)
+(setq auto-save-timeout 120)
+(setq idle-update-delay 10)
View
@@ -1,6 +1,6 @@
;(global-auto-revert-mode 1)
(defun ask-user-about-supersession-threat (fn) "blatantly ignore files that changed on disk")
-(run-with-timer 0 2 'my-check-external-modifications)
+(run-with-timer 0 10 'my-check-external-modifications)
(add-hook 'after-save-hook 'my-check-external-modifications)
(add-hook 'after-revert-hook 'my-check-external-modifications)
View
@@ -1,6 +1,9 @@
(setq line-number-mode t)
(setq column-number-mode t)
-;(global-linum-mode 1)
-(add-hook 'find-file-hook (lambda () (if (not (equal major-mode 'doc-view-mode)) (linum-mode 1))))
+
+;; unfortunately, linum slows down scrolling considerably
+;;(global-linum-mode 1)
+;;(add-hook 'find-file-hook (lambda () (if (not (equal major-mode 'doc-view-mode)) (linum-mode 1))))
+
(global-set-key (kbd "<home>") 'beginning-of-visual-line)
(global-set-key (kbd "<end>") 'end-of-visual-line)
View
@@ -2,10 +2,11 @@
(setq mouse-wheel-progressive-speed nil)
(setq mouse-wheel-follow-mouse 't)
-(setq scroll-step 1)
-(setq scroll-margin 3)
-(setq scroll-conservatively 0)
-(setq scroll-up-aggressively 0.01)
-(setq scroll-down-aggressively 0.01)
-(setq scroll-preserve-screen-position t)
+;; this stuff leads to jerky scrolls on Windows
+;;(setq scroll-step 1)
+;;(setq scroll-margin 3)
+;;(setq scroll-conservatively 0)
+;;(setq scroll-up-aggressively 0.01)
+;;(setq scroll-down-aggressively 0.01)
+;;(setq scroll-preserve-screen-position t)
View
@@ -1,6 +1,11 @@
(setq ecb-tip-of-the-day nil)
(setq ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2))
-(setq ecb-basic-buffer-sync 'always) ;; eats lots of CPU, but provides more pleasant UX
(setq ecb-add-path-for-not-matching-files (quote (nil))) ;; essential for performance
(setq ecb-vc-enable-support nil) ;; having icons is nice, but having them fucked up 80% of the time is not!
(setq ecb-auto-update-methods-after-save nil) ;; otherwise ECB throws exceptions after Ctrl+S when the tree widget is hidden
+
+(setq ecb-basic-buffer-sync 'always) ;; 'always eats lots of CPU, but provides more pleasant UX
+(setq ecb-analyse-buffer-sync nil)
+(setq ecb-eshell-buffer-sync nil)
+(setq ecb-speedbar-buffer-sync nil)
+(setq ecb-symboldef-buffer-sync nil))
@@ -0,0 +1,2 @@
+(setq w32-get-true-file-attributes nil)
+(setq w32-quote-process-args t)

0 comments on commit 678a0dd

Please sign in to comment.