Re: ShortPathFilename in memory disk.
- From: Robert Baer <robertbaer@xxxxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 10:51:14 GMT
Ancient_Hacker wrote:
You can do that, the VFAT file system takes care of the 8.3 namesWhy add that extra step of multiplying? It takes time and onlymakes for a larger result to store...
remaining unique.
If you're really strapped for space you could save some hash of the
long file name as 32 or 64 bits, that would be more compact and would
work with other file systems, like NTFS, that don't make short names.
One good hash algorithm is to add up all the characters, multiplying
the total by some prime (like 13) each time. Simple and you only risk
a 1 in 2^32 or 2^64 chance of collision.
.
- Follow-Ups:
- Re: ShortPathFilename in memory disk.
- From: Ancient_Hacker
- Re: ShortPathFilename in memory disk.
- References:
- ShortPathFilename in memory disk.
- From: Boki
- Re: ShortPathFilename in memory disk.
- From: Robert Baer
- Re: ShortPathFilename in memory disk.
- From: Ancient_Hacker
- ShortPathFilename in memory disk.
- Prev by Date: Re: I wonder if that's hot.
- Next by Date: Re: GPS trackers - a potential weapon from hell
- Previous by thread: Re: ShortPathFilename in memory disk.
- Next by thread: Re: ShortPathFilename in memory disk.
- Index(es):
Relevant Pages
|