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

Re: Small Hash a Gateway to Large Hash?

by oiskuu (Pilgrim)
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?
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

    AWESOME!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-08-21 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls