IRAF help page for package language, program cache

from NOAO cache -- cache the parameters for a task in fast memoryUSAGEPARAMETERSDESCRIPTIONEXAMPLESBUGSSEE ALSO

cache -- cache the parameters for a task in fast memory


USAGE

cache task [task ...]


PARAMETERS

task

The name of a task whose parameter set is to be cached in fast memory.


DESCRIPTION

The cache command loads the parameters of a task in memory. The CL normally reads the parameters for a task from disk whenever the task is executed. Cacheing the parameters for frequently executed tasks can speed up execution significantly. This is particularly important when the tasks are called from within a loop.

If the cache command is entered without any arguments a list of the currently "cached" tasks is printed.


EXAMPLES

1. Cache the parameters for the tasks directory and page.

cl> cache dir page

2. Cache the parameters for the tasks called in a loop within the body of a procedure script. Note the use of command mode in the script.

	begin
		cache ("alpha", "beta")
		for (i=1;  i <= 10;  i+=1) {
		    alpha (i)
		    beta (i)
		}
	end

BUGS

BUGS The parameter cache should not be confused with the process cache associated with the prcache and flprcache commands.


SEE ALSO

unlearn, update, lparam, eparam,


This page automatically generated from the iraf .hlp file. If you would like your local iraf package .hlp files converted into HTML please contact Dave Mills at NOAO.

dmills@noao.edu