Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-06-22 17:07 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.