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

Add Go compiler directive 'noescape' to assembly implementations #1

Merged
merged 1 commit into from
Feb 11, 2019

Commits on Feb 8, 2019

  1. Add Go compiler directive 'noescape' to assembly implementations

    Without this directive Go considers that `data []byte` escapes from the
    function, and forces allocation on the heap even for values which can
    perfectly stay on the stack.
    
    This removes extra allocation when value passed in is not on the heap
    already.
    
    See also: golang/go#4099
    smira committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    2e42a5a View commit details
    Browse the repository at this point in the history