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

protocodec: make a few tweaks to allow inlining #45

Merged
merged 1 commit into from
Apr 9, 2024

Commits on Apr 9, 2024

  1. protocodec: make a few tweaks to allow inlining

    protocodec.GalaxyGet is particularly hot, and trivial so it should get
    inlined. Make a few tweaks to allow inlining. (bringing the cost down
    below the magic 80 number in the go compiler)
    
    Similarly, split up protocodec.backendGetterV2.Get to allow inlining of
    the fast path. (Amusingly, this also allows the new `setSlow` to inline,
    but that wasn't the goal)
    dfinkel committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    f34785d View commit details
    Browse the repository at this point in the history