work with long (actually very long) file/dir names.

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

gigaman wrote:Maybe I'm missing something obvious - but why not use dynamic strings (i.e. with a size allocated according to current content length) - especially if memory usage should be an issue?
Since most paths are short anyway (shorter than 260 characters), it would save memory almost always...
Because it's additional development effort. I'm 95% sure there's no other reason.
Ammammata
Junior Member
Junior Member
Posts: 24
Joined: 2003-03-04, 18:16 UTC
Contact:

Storing *MANY* paths/files

Post by *Ammammata »

Maybe the best solution to store so many path/files is to create a database exactly like the directory structure on the disk (and consequently manage it in the proper way)
Maybe...
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

create a database exactly like the directory structure on the disk
Isn't that what treeinfo.wc is ?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply