Re: File size limit
- Posted by Matt Lewis <matthewwalkerlewis at gmail.?o?> Jun 11, 2008
- 689 views
Kat wrote: > > > You can't seek over 2gbytes, but you can getc() and gets() to any length. So > i made a procedure to getc() the number of bytes i wanted to seek(), and then > there i was. > > I have asked for larger file numbers too, but i don't think we will get them > in Eu v4. Even if we did, we could not do basic full precision integer math > on the numbers over 4gigabytes (there are such libs in the archives tho). Larger file numbers are probably pretty easy (I think it's just increasing an array size and updating a macro). How many do you want? I don't recall this specifically (at least not specifically). You can do full precision integer math using atoms to much larger sizes than 2^32. The limit on precision is 2^53, or: 9,007,199,254,740,990 That's over 9 quadrillion, or about 9 terabytes (in disk manufacturer style units). Granted, this isn't using native machine integers, but probably faster than the above quoted libraries. If you need numbers bigger than that for file manipulation, I'd suggest that you need a better algorithm. Matt