Skip to content

Function inlining #385

@0x0ece

Description

@0x0ece

👋 this is not an issue, but wanted to highlight some ideas @Rexicon226 and I had around function inlining.

For context, we've been using s2n-bignum inside the Firedancer project for a while now (p256, k256, soon ed25519 and more).

The current "problem": each function we get from s2n-bignum does a fn call, there's no way for us to inline them, so small functions are harder to use and compose because of the overhead they incur.

We experimented a bit with what compilers support and came up with this way to write the code:
firedancer-io/firedancer#9235

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions