-
Notifications
You must be signed in to change notification settings - Fork 161
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
Remove unnecessary heap allocations and calls to C. #118
Remove unnecessary heap allocations and calls to C. #118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, thanks!
bors r+ |
118: Remove unnecessary heap allocations and calls to C. r=Hywan a=koponen-styra 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. Co-authored-by: Teemu Koponen <koponen@styra.com>
Build failed
|
Hmm, "just test" passes locally on my ubuntu. I tried to access the details from bors, but it merely says permission denied. |
I think bors failed because some Github permissions. Let's try again bors r+ |
118: Remove unnecessary heap allocations and calls to C. r=syrusakbary a=koponen-styra 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. Co-authored-by: Teemu Koponen <koponen@styra.com>
Build failed
|
The error seem to be in the test bazel build:
This is unrelated to the changes on this PR. Will try to fix it in master upstream and then we can just update this PR with the latest master :)
|
@koponen-styra if you rebase your PR with the latest master, the issue should be fixed (via 351f772 ) |
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.
03737cf
to
b297eb6
Compare
bors r+ |
Build succeeded
|
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.