March 2002 | Perl Hardware Store | 22 |
Makes programs faster
Exchanges space for time
When a cached function is called, its return value is saved
When called again with same arguments, the saved value is returned
Very commonly used
Example: Your CPU caches data it gets from main memory
Example: The Linux kernel caches data it read from the disk
Example: Your web browser caches the pages it gets from the network
Next | Copyright © 2002 M-J. Dominus |