Creating and destroying objects can take a lot of time. If you can, consider holding onto objects for longer periods and reusing them. This makes the most sense for heavyweight objects: lighter ones can be cheaper to create than the caching mechanism. In addition, watch out for concurrency issues you might not have with locally created objects but that might show up with a cache.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker