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

Wow, I've definitely got plenty to work with here. Thank you all for your help.

Kind Regards,
Rich
  • Comment on Re^2: Reducing memory footprint when doing a lookup of millions of coordinates

Replies are listed 'Best First'.
Re^3: Reducing memory footprint when doing a lookup of millions of coordinates
by BrowserUk (Patriarch) on Feb 28, 2011 at 13:05 UTC

    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.
      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