Open fbjerno opened 8 months ago
We don't really target this use case with all text on one line. This is a tradeoff we're making at least for now.
On Sun, Mar 31, 2024, 7:04 AM fbjerno @.***> wrote:
Describe the bug Searching (CTRL-F) is very slow on big single-line files. Formatting the file so it is not all on the same file makes the issue go away.
To Reproduce
- Open/create a big file with all the text on one line. (I've attached the file I experienced this problem with, along with a formatted version that does not cause the same issue)
- Open the search dialogue and attempt to search something.
- Focus immediately becomes unresponsive after the first key press and takes several seconds to become responsive again.
Expected behavior Searching be about as fast on a file where the text is all on the same line as one with multiple lines.
- OS: Windows 10
- Focus Version: 0.3.3 example_unformatted.txt https://github.com/focus-editor/focus/files/14812864/example_unformatted.txt example_formatted.txt https://github.com/focus-editor/focus/files/14812865/example_formatted.txt
— Reply to this email directly, view it on GitHub https://github.com/focus-editor/focus/issues/330, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4OX77UO34AVKWNUGRE6J4TY23WCVAVCNFSM6AAAAABFPXFXNWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTMNRQGY4TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Describe the bug Searching (CTRL-F) is very slow on big single-line files. Formatting the file so the text is not all on the same file makes the issue go away.
To Reproduce
Expected behavior Searching should be about as fast on a file where the text is all on the same line as one with multiple lines.