- status changed from new to accepted
- component changed from Implementation to Functionality
= _TPL macros and performance =
Could you give some figures of the gain of the change of introducing the
_TPL macros?
No, I don't have the numbers :( Now it'll be too much work to
implement the without _TPL case to compare... However, the without
_TPL implementation created an extra 4 template functions for each
user defined functions. In the _TPL case the extra 4 functions are
template functions only when the user function is also a template.
I should do some benchmarking. If the _TPL macros don't really save time, it'd be better to make them optional in future releases (i.e., the _TPL and non-_TPL macros expand to the same code)--that will simplify the interface (by making the _TPL macros obsolete and keep as #define XYZ_TPL XYZ just for backward compatibility).
Log in to post a comment.