in reply to Re^2: Reducing memory footprint when doing a lookup of millions of coordinates
in thread Reducing memory footprint when doing a lookup of millions of coordinates

Be aware that memoisation will not help your problem at all.

Memoisation speeds up repetitive calculations by caching the results of those calculations to avoid recalculating them. It uses (often prodigious amounts of) memory to gain speed.

Since your stated goal is to reduce memory usage; since you have no repetitive calculations; any attempt to use the linked module could not help your performance and would increase your memory footprint, probably to the point of out-of-memory failure.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Reducing memory footprint when doing a lookup of millions of coordinates

Replies are listed 'Best First'.
Re^4: Reducing memory footprint when doing a lookup of millions of coordinates
by richardwfrancis (Beadle) on Mar 01, 2011 at 01:13 UTC
    Thanks BrowserUK,

    I had a read up on Memoization and came to the same conclusion. However I realised I'd implemented it in another recent project without actually knowing what it was!

    Regards
    Rich