Skip to content
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

Optimize Usd_LinearInterpolator. #1883

Merged

Commits on May 24, 2022

  1. Optimize Usd_LinearInterpolator. Swapping the lowerValue with the _re…

    …sult and calling _result.data() afterwards results in a memmove in the data() function call. Later on the Usd_Lerp loop overwwrite the all values which have been copied before with the memmove call making the memmove an expensive nop.
    
    Also using operator[] on each loop iteration on upperValue results in a function call to uperValue.data() on each loop iteration which can easily be avoided by fetching the data pointer once before.
    mtavenrath committed May 24, 2022
    Configuration menu
    Copy the full SHA
    302af69 View commit details
    Browse the repository at this point in the history