-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary heap allocations and calls to C.
Instead of allocating the function name and function parameter/return value holders for each function invocation, pre-allocate them. This is possible because invocations occur sequentially (in presence of no threading). This both reduces GC pressure and removes two cgo calls.
- Loading branch information
1 parent
351f772
commit b297eb6
Showing
1 changed file
with
16 additions
and
8 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