Skip to main content

 
IBM Power Systems software  >  IBM i  > Software  > 

Net.Data for i5/OS

  
Overview News Library Education Support
Macro Caching Improves Performance

Abstract: Macro caching improves performance by storing the tokenized form of the macro in memory for later reuse.

What is it?
In the past, when Net.Data processed a macro, it had to search for tokens by parsing each character in the file. This was done every time a macro was processed. With macro caching, Net.Data parses a macro one time and saves the tokenized form of the macro in memory so that when the same macro is invoked, Net.Data will use the tokenized form of the macro, thus eliminating the need to look at each character in the file.

Why would I want to use it?
Performance. Macro caching improves the processing of a macro by up to 30%.

NOTE: Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here.

How do I use it?
Macro caching is enabled by default. You can control how much memory to use by specifying DTW_MACRO_CACHE_SIZE in the Net.Data INI file. The default value is 5 Megabytes, which should be sufficient in most cases. You can shut off macro caching by specifying 0.

If a macro changes, Net.Data will detect the change and regenerate the tokenized form of the macro.

Availability
V3R2, V3R7 and subsequent releases. Ensure you have the latest Net.Data PTF.