Skip to content
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

Fewer cgo calls #2

Open
james4k opened this issue Oct 25, 2014 · 0 comments
Open

Fewer cgo calls #2

james4k opened this issue Oct 25, 2014 · 0 comments

Comments

@james4k
Copy link
Owner

james4k commented Oct 25, 2014

Many of the cgo calls that just mutate state could be turned into pure Go calls (probably with unsafe), allowing them to be avoid the cost of cgocalls, and potentially be inlined. The majority of the cost in the bgfx-17-drawstress example is cgo overhead.

Tests should check for the expected side effects by comparing the entire internal C structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant