forked from orijtech/groupcache
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters