Top "Memoization" questions

In computing, memoization is an optimization technique used primarily to speed up computer programs by having function calls avoid repeating the calculation of results for previously-processed inputs.

Numpy Pure Functions for performance, caching

I'm writing some moderately performance critical code in numpy. This code will be in the inner most loop, of a …

python numpy optimization memoization blas
What are the different techniques for memoization in Java?

I know of this one http://onjava.com/pub/a/onjava/2003/08/20/memoization.html but is there anything else?

java memoization
Is there a generic way to memoize in Scala?

I wanted to memoize this: def fib(n: Int) = if(n <= 1) 1 else fib(n-1) + fib(n-2) println(fib(100)) // times …

scala scope dynamic-programming memoization forward-reference
Writing Universal memoization function in C++11

Looking for a way to implement a universal generic memoization function which will take a function and return the memoized …

c++ c++11 memoization
Java memoization method

I came across an interesting problem and was wondering if and how could this be done in Java: Create a …

java lambda memoization
memoize to disk - python - persistent memoization

Is there a way to memoize the output of a function to disk? I have a function def getHtmlOfUrl(url): ... # …

python memoization
What is the difference between Caching and Memoization?

I would like to know what the actual difference between caching and memoization is. As I see it, both involve …

caching terminology memoization
Python - anyone have a memoizing decorator that can handle unhashable arguments?

I've been using the following memoizing decorator (from the great book Python Algorithms: Mastering Basic Algorithms in the Python Language ... …

python memoization
When to use memoization in Ruby on Rails

In mid July 2008 Memoization was added to Rails core. A demonstration of the usage is here. I have not been …

ruby-on-rails ruby performance memoization
How do you initialize variables in Ruby?

Are there any differences between the following ways of initialization of variables? @var ||= [] @var = [] if @var.nil? @var = @var || [] Please …

ruby variables initialization memoization