Improving performance with caching

There are some common guidelines to follow that can improve application performance and reduce system load.

The following are some guidelines to follow:

Grammar Scenarios and tuning recommendations

I use only precompiled grammars in my applications that never expire.
If the precompiled grammars are large they should be preload and streamed. If any case, cache conservation should be used and the grammar cache size should be set to the number of bytes used by the grammars plus a small amount (100k) for cache overhead. To refresh the cache with newer precompiled grammars, stop WebSphere® Voice Server and restart, it will automatically re-fetch fresher content.
I use precompiled grammars in my applications that sometimes expire.
Precompiled grammars that expire during WebSphere Voice Server uptime should not be preloaded. Large precompiled grammars should be streamed. If any case, cache conservation should be used and the grammar cache size should be set to the number of bytes used by the grammars plus a small amount (100k) for cache overhead.
I use one large source grammar, with various public entry points for all my applications.
If the grammar never expires, preload the various public entry points. In any case, the source is only fetched once and only the public entry points and their rule dependencies are compiled into binary grammars. Do not enable cache conservation.
I use a mixture of source and precompiled grammars.
Preload those precompiled grammars that never expire and enable streaming by setting stream configuration to the size of the smallest precompiled.


Terms of use | Feedback

(c) Copyright IBM Corporation 2004, 2009. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.