Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers

From: Stefan Monnier <[email-masked]>
Date: Tue, 12 Dec 2023 18:09:41 -0500

> E.g. company-dabbrev-code creates a dynamic binding for case-fold-search in
> one place and then calls a function (company-dabbrev--search) that iterates
> across all buffers with re-search-forward.

BTW, that `company-dabbrev-code` function may not do what you expect
in those buffers that have set `case-fold-search` buffer-locally.

        Stefan