Hi,
I'm pretty sure the answer is no, but want to double check... I have two hashes that contain the same data but the key and the value are swapped:
$hash1{$value1} = $value2; $hash2{$value2} = $value1;
My question is whether or not I can somehow get the two hashes to occupy the exact same space.. only hash2 would look at the memory backwards. Considering there are about 300,000 key/value pairs, this is a significant amount of data, and no, putting it in a database is not viable as we are talking about roughly 80 million operations on each hash. What I'm trying to do is reduce the memory requirement.
Again, I'm doubtful this can be done, but it doesn't hurt in asking
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
In reply to two hashes occupying the same space by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |