| ▲ | koyote 2 hours ago | |
I ran into a similarish issue in C++ (MSVC++) where a small change that improved an error message led to a 10% slowdown. The function was something like:
The exception line was changed to something like:
The performance of this hot-path function went down the drain.I fixed it by replacing the exception call with yet another function call:
Other fixes might have included something like __forceinline in the function signature. | ||