Consider constructing the type name on-the-fly. This can save time and memory. As an example, consider the TV_ttf_display_type for BoundsCheckedArray<T> we discussed earlier:Note how we constructed an array type. The alternative would be to iterate a->get_size () times calling TV_ttf_add_row (). Depending on the number of elements, this could exhaust the API's buffer. In addition, there is a time penalty since TotalView will need to handle each line added by TV_ttf_add_row separately.
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
support@roguewave.com |