Skip to content

Does GO inline function calls for... #11

@tilkinsc

Description

@tilkinsc

Does GO inline function calls for things like,

'setHalfCarryFlag' functions?

I wonder if an optimization could fruit from having a leaf function for each.]

Relevant:
https://lemire.me/blog/2017/09/05/go-does-not-inline-functions-when-it-should/
https://www.reddit.com/r/golang/comments/6ypwui/go_does_not_inline_functions_when_it_should/
https://groups.google.com/forum/#!topic/golang-nuts/V_xI29FGDZM

As per the last one it might be obvious due to function branching for a one-switch-all format for a function to be used. You can easily double your speed as lemire.me blog said by manually inlining some things that aren't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions