-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid allocating tintError twice (#82)
* Avoid allocating tintError twice Passing the type-asserted tintError value as an error causes a second allocation. Since the helper method is only for tintError values, change the signature to specify the concrete type to elide the second allocation. * added `tint.Err` benchmark --------- Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
- Loading branch information
1 parent
de437d0
commit bd5634c
Showing
2 changed files
with
9 additions
and
1 deletion.
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