Skip to content

{-# INLINABLE #-} loses all meaning if you apply it to every function #7

@ctrlcctrlv

Description

@ctrlcctrlv

Every defined function is defined as {-# INLINABLE #-}.

Making a function inlinable isn't a magic word that makes it faster.

In fact, inlining can hurt performance in some cases. Especially when applied to every function.

More care should be taken to only inline functions when there's a benefit. If it was so magical, wouldn't the ghc developers inline every function by default? 🙄

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