mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-17 13:33:36 -05:00
@@ -97,11 +97,9 @@ in."
|
|||||||
(print-group!
|
(print-group!
|
||||||
;; Check for oversized problem files in cache that may cause unusual/tremendous
|
;; Check for oversized problem files in cache that may cause unusual/tremendous
|
||||||
;; delays or freezing. This shouldn't happen often.
|
;; delays or freezing. This shouldn't happen often.
|
||||||
(dolist (file (list "savehist"
|
(dolist (file (list "savehist" "projectile.cache"))
|
||||||
"projectile.cache"))
|
(when-let (size (ignore-errors (doom-file-size path)))
|
||||||
(let* ((path (expand-file-name file doom-cache-dir))
|
(when (> size 1048576) ; larger than 1mb
|
||||||
(size (/ (doom-file-size path) 1024)))
|
|
||||||
(when (and (numberp size) (> size 1000))
|
|
||||||
(warn! "%s is too large (%.02fmb). This may cause freezes or odd startup delays"
|
(warn! "%s is too large (%.02fmb). This may cause freezes or odd startup delays"
|
||||||
(relpath path)
|
(relpath path)
|
||||||
(/ size 1024))
|
(/ size 1024))
|
||||||
|
Reference in New Issue
Block a user