Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Small Hash a Gateway to Large Hash?

by oiskuu (Hermit)
on Feb 18, 2014 at 08:24 UTC ( #1075289=note: print w/replies, xml ) Need Help??

in reply to Small Hash a Gateway to Large Hash?

What you are thinking of is commonly called a cache. :-)

Caches make (a lot of) sense, whenever the data has temporal and/or spatial locality. Which is the typical case.

Now the thing is, your computer already employs caching at multiple levels. An additional caching scheme may still bring benefits if it makes your working set more compact. But there may be opportunities to arrange your large data in a way that improves locality. It depends on the problem. Also, many algorithms have their "cache oblivious" versions.

  • Comment on Re: Small Hash a Gateway to Large Hash?

Replies are listed 'Best First'.
Re^2: Small Hash a Gateway to Large Hash?
by lsherwood (Sexton) on Feb 18, 2014 at 21:52 UTC
    Yes, it is a cache.

    And you guys are, to use a trite, overworked word


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075289]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2016-10-24 04:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (303 votes). Check out past polls.