in reply to (mem)caching of ip prefixes?
I just wanted to throw this out there: HOWTO Memoize a Function
I'm not sure if this will do what you want, but it's helped me in the past.
From the docs it says:`Memoizing' a function makes it faster by trading space for time. It does this by caching the return values of the function in a table. If you call the function again with the same arguments, memoize jumps in and gives you the value out of the table, instead of letting the function compute the value all over again.
My understanding is you'd basically register the function calls that do the lookup as 'memoized' and anytime you call those functions, with the same params, it will use a lookup table. Maybe it'll help.
Kurt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (mem)caching of ip prefixes?
by Fangorn (Initiate) on Jun 27, 2007 at 19:57 UTC |