-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@assert message does not interpolate #5267
Comments
I've added support for this, but doing this is not recommended since a lot of extra code has to be generated for constructing the interpolated string. While of course the string itself is only allocated in case of an error, it can still negatively affect surrounding code. |
@JeffBezanson is that negative impact just in terms of compilation time and total code size (cache misses)? Or is there something else that I'm missing? It was one of the first things I tried to do as a beginner myself, so I'm just curious. As long as it's not in library code or a hot-path, it should be fine, yes? |
If the containing function is otherwise very simple, it can cause generation of a GC frame, which can slightly slow down calls to the function. |
The text was updated successfully, but these errors were encountered: