|
From: | Dmitry Gutov |
Subject: | bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el |
Date: | Sat, 6 Mar 2021 14:31:28 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 04.03.2021 19:35, Gregory Heytings wrote:
Just tried 'exact, it works, it's slow (but not horribly slow: 1.2 seconds on that 25 MB file)
1.2s is pretty slow for this purpose.Otherwise it would be possible to use this approach (by introducing a Grep-specific location type) and avoid parsing the line contents for every match.
One downside would be missing on the syntax highlighting which we sometimes get for already-fontified parts of buffers, but it's unreliable anyway.
[Prev in Thread] | Current Thread | [Next in Thread] |