-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The 'extendMaybe' function is seemingly *not* inlined in Go. Yet it
is systematically called when we set values, to check whether the backing array need to be extended. By bringing the check (the branch) in the calling function, we reduce the number of function calls. This leads to a ~10% performance gain in some benchmarks.
- Loading branch information
Showing
1 changed file
with
28 additions
and
25 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