Re: Managing memory usage & big sequences
- Posted by cp Feb 03, 2011
- 1174 views
Sorry should read 32bit not 32gb. In general I'd like to test if there is enough memory for a sequence before I build it as I'm envisioning some users attempting to create sequences > 2or3gb of ram. Sounds like from your response I can safely call allocate(x) where x is an estimate of bytes I think the sequence will need. And if it fails then I can handle w/o crashing the app. Any good points of reference on estimating how much memory a given sequence will need? Would I estimate 4bytes for each numeric value in the sequence? Thanks