[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45652: so-long mode not triggered despite big file with very long li
From: |
Lars Ingebrigtsen |
Subject: |
bug#45652: so-long mode not triggered despite big file with very long lines |
Date: |
Mon, 11 Jan 2021 19:39:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Phil Sainty <psainty@orcon.net.nz> writes:
> In particular, so-long doesn't (by default) look at the whole file,
> and the above file is apparently 45,982 lines long. For context
> I am currently looking at increasing the maximum number of lines
> checked by so-long (by default) to 500 -- approximately the first
> 1% of your file.
Have you considered adding a C-level primitive that just looks at the
entire buffer? It should be reasonably simple and very fast -- just
count areas between "\n"s, skipping the buffer gap. We don't have to
care about characters as such, I think, so this should be massively
faster than counting line lengths in Lisp.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug#45652: so-long mode not triggered despite big file with very long lines,
Lars Ingebrigtsen <=
- bug#45652: so-long mode not triggered despite big file with very long lines, Phil Sainty, 2021/01/11
- bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/11
- bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/11
- bug#45652: so-long mode not triggered despite big file with very long lines, Phil Sainty, 2021/01/11
- bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/12
- bug#45652: so-long mode not triggered despite big file with very long lines, Eli Zaretskii, 2021/01/12
- bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/12
- bug#45652: so-long mode not triggered despite big file with very long lines, Eli Zaretskii, 2021/01/12
- bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/12
bug#45652: so-long mode not triggered despite big file with very long lines, Lars Ingebrigtsen, 2021/01/12