Variable: which-func-maxout
which-func-maxout is a customizable variable defined in
which-func.el.gz.
Value
500000
Documentation
Don't automatically compute the Imenu menu if buffer is this big or bigger.
Zero means compute the Imenu menu regardless of size.
If Which Function delays the initial display of buffers too much, e.g., when it is used with Eglot, and the language server takes a long time to send the information, you can use this option to delay activation of Which Function until Imenu is used for the first time.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/which-func.el.gz
(defcustom which-func-maxout 500000
"Don't automatically compute the Imenu menu if buffer is this big or bigger.
Zero means compute the Imenu menu regardless of size.
If Which Function delays the initial display of buffers too much,
e.g., when it is used with Eglot, and the language server takes a
long time to send the information, you can use this option to delay
activation of Which Function until Imenu is used for the first time."
:type 'natnum)