-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Memrecycle Performance Regression 1.14.3 #5371
Comments
Thanks for investigating!
This sounds like the first-order fix to me. We can also do |
This comment was marked as outdated.
This comment was marked as outdated.
@ColeMiller1 commit you mentioned |
@jangorecki Thanks! Yes, the branch resolves the issue. As for version, wasn't a hotfix applied for 14.2 so many 14.1 DEV was postponed and is included in 14.3? I think it's just been a while since we've had a full release. |
Identified by @tlapak in #5366, there is a performance regression in 14.3 introduced by #4491 @jangorecki . I'm reporting here so we can separate the Pandas rolling time performance comparison from the regression issue.
The regression was specifically introduced by this commit: e793f53 . Basically,
snprintf()
performs poorly in spite of the better looking code. See also https://stackoverflow.com/questions/64600389/why-is-calling-snprintf-so-slow.For performance, Stackoverflow seems to suggest
strcpy()
. I propose either rolling back the changes or using a helper function during the calls so that the string is only made when needed. Without any changes, users would see performance issues which would be most noticeable when there are many groups in non-Gforce j calls.Edit: The main difference is that every call gets this assigned
targetDesc
. Previously, the character would only be made during warnings, errors, or higher levels of verbosity with types being mismatched. That is, the character would largely not be made. If the second line withsnprintf()
is commented out, the code runs fast.The text was updated successfully, but these errors were encountered: