Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have 1 GB of data that I would like to add to a CDF file, but I would like to avoid it being loaded into memory when someone opens the file (Free Player).

One gigabyte of info takes a lot of computer memory, and the user of the file doesn't need to have it all in memory (specially when the way Mathematica or Player manages the opening of the file originates, for a couple of seconds, a double memory consumption which will go above a 32 bit process limit).

So, this would work as something like a DB included in the CDF file. A dynamic structure interface will then allow the user of the CDF file to load only a part of the data into memory (Set a variable to a part of the total data).

share|improve this question
2  
Honestly, I don't think it's possible. I think that the frontend is smart enough to not load a verly large notebook completely under certain circumstances but I doubt you can control that. Have you tried to put that data into TagginRules, maybe in chunks and compressed and checked whether the frontend loads everything? Interesting question, I'm looking forward for more constructive answers... –  Albert Retey Jun 1 '13 at 9:37
    
I agree with Albert. Due to the restrictions on data import posed on CDFs I don't think it's possible to load data after the CDF has been started. The only possibility that I see is to let the user use radio button panels to toggle-in the data, just like the computers of the 50s era. I guess you won't like to do that for 1 GB of data. –  Sjoerd C. de Vries Jun 1 '13 at 11:07
    
@SjoerdC.deVries you mean having it in a non shown dynamic structure? But how to put it there in the first place? Frontend would freeze if I placed the data in the middle of the program... –  P. Fonseca Jun 1 '13 at 12:41
    
I was talking about something like this, but not seriously. –  Sjoerd C. de Vries Jun 1 '13 at 16:06
2  
Import["http:"<>"//my.datar... positiry.org/data.mx"] should work also in FreeCDF –  Rolf Mertig Jun 1 '13 at 23:16
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.