Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Small Hash a Gateway to Large Hash?

by oiskuu (Friar)
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 about the Monastery: (7)
As of 2015-11-27 21:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (734 votes), past polls