Lister: Long Line Length

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rif
Junior Member
Junior Member
Posts: 17
Joined: 2005-05-06, 06:24 UTC
Location: Luxembourg

Lister: Long Line Length

Post by *rif »

The Lister feature limits text lines to an internal 1024 bytes buffer to show 1024 characters (or half that for UCS2 / Unicode). Longer lines just wraps around and there is no indication that line wrap happened.

Currently I work with some debug files for a special camera decoding project. Here my debug output is >3000 chars per line.

1. Please update Lister to handle lines with at least 4 KB, but preferable update to handle lines of 16 KB or 64 KB.

2. Some sort of indication that line-wrapping has occurred.
Last edited by rif on 2014-03-02, 13:42 UTC, edited 1 time in total.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Optionally, this larger line length could be configurable, to be enabled by advanced users (long lines can slow down Lister as I suppose).
rif
Junior Member
Junior Member
Posts: 17
Joined: 2005-05-06, 06:24 UTC
Location: Luxembourg

Lister: Long Line Length

Post by *rif »

MarcinW wrote:Optionally, this larger line length could be configurable, to be enabled by advanced users (long lines can slow down Lister as I suppose).
Yes speed is important. This is why my request is just for 16K or 64K lines, not giga-bytes lines.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Support++ - at least 4K lines would be a welcomed improvement :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

I agree - with the line size limit it looks to me that Christian is little "overprotective" - artificial restriction in the name of speed. However, today in days of SSD disks is access to filesystem pretty fast.
I know that if let's say the limit would be 64k per line and lister is displaying 50 lines, it would mean to load >3MB per page + some additional size that TC pre-loads. But again - PCs have multi GB of memory.
And of course - the most importantly: default line size would stay on current 75 (or 80) chars, so really only those users that want/need it would bump it up. Also, if I would see it really slows me down, I can decrease that size to something more reasonable.

ado
Post Reply