in reply to out of memory problem
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: out of memory problem
by perlbeginner10 (Acolyte) on Mar 15, 2006 at 20:58 UTC | |
And Here is sample dataset: But this dataset is actually huge. It's about 48MB. I have 1GB memory in my comp. I ran this program on Windows and Fedora core, but the resut is the same: blank --(with the 48MB dataset). PS: If there are any other points that can improve my code, please let me know. | [reply] [d/l] [select] |
by GrandFather (Saint) on Mar 15, 2006 at 21:14 UTC | |
First glance - You could describe the output you expect. Sometimes knowing what is expected of a piece of code helps understand it - sometimes it helps misunderstand it :) Update: more items added DWIM is Perl's answer to Gödel | [reply] [d/l] [select] |
by perlbeginner10 (Acolyte) on Mar 16, 2006 at 05:33 UTC | |
As you can see, I am trying to create transitive relationships, ie, If A->B, and B->C, then A->C. But I am also giving weight to the relationships, ie, if A->D, and D->C, then again A->C. So the relation [valueof{A}][valueof{C}]=2---->ie 1+1, because the relation was created twice. | [reply] [d/l] [select] |
by GrandFather (Saint) on Mar 16, 2006 at 07:05 UTC | |
by perlbeginner10 (Acolyte) on Mar 25, 2006 at 06:38 UTC | |
| |
by ikegami (Patriarch) on Mar 15, 2006 at 22:47 UTC | |
I don't have time to look at it personally, at least not now, but the following will help you greatly. Change
to
You'll have (2 or 3) fewer copies of your file in memory. | [reply] [d/l] [select] |