Hash gets created in the memory and will stay as long as the instance ( process ) that built is resident in the memory.
What am looking for is -
Process 'A' is spawned
Build hash data structure with 1 M entries
Assign a namespace ( example name : h-m1 ) to the above
Now process 'A' dies off, but h-m1 should still be resident in the mem
+ory that is they have to be resident even after the process which cre
+ated terminates.
Now when another instance of process 'A' is spawned, without having to reconstruct the hash data structure with 1M entries, it should simply do a lookup using the namespace 'h-m1' ( or something like that )
Am trying to achieve some optimization on the time taken to construct the hash of 1M entries which is a big win for my script
Is that possible? Many thanks in advance :)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.