in reply to Re^3: Storing large data structures on disk
in thread Storing large data structures on disk
First of all, thanks again. I really appreciate the help from all you guys. I also appreciate how much more there is to know about this wonderful language.
A few question re. BrowserUk's code:
1. When I run your code with passing -O=6, for example, it also prints the structure to the screen. This does not happen when omitting the -O=... . Why is that?
2. What is the meaning of pp here? I read in CPAN that it is used to create standalone executables, but I don't understand the connection (and moreover, why do we pass the structure to it...).
3. Can you explain the heart of the packing:
printf O "%s", pack 'V/A*', pack 'V*', @{ $AoA[ $_ ] };;we we print each array to the output file. what does the / between the V and A stand for? I can read it means for a count of the packed items, but where does it value come from? and why do we need the second pack?
And one last question for now - when the ds becomes too large to store it all in memory, is tying with MLDBM the preferred paradigm? What are the alternatives?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Storing large data structures on disk
by BrowserUk (Patriarch) on May 31, 2010 at 20:16 UTC | |
by roibrodo (Sexton) on Jun 01, 2010 at 04:32 UTC | |
by BrowserUk (Patriarch) on Jun 01, 2010 at 06:13 UTC | |
by roibrodo (Sexton) on Jun 01, 2010 at 06:54 UTC | |
by BrowserUk (Patriarch) on Jun 01, 2010 at 08:01 UTC | |
| |
by planetscape (Chancellor) on Jun 04, 2010 at 23:14 UTC | |
|