Skip to content

Need more non-escaping specializations #704

Closed
@Fidget-Spinner

Description

@Fidget-Spinner

Right now I'm working on function inlining. The inlining works by optimistically attempting to inline any function whose entire body is non-escaping.

The problem is that operations such as // or ** seem innocuous enough, but are unspecialized and so cannot be differentiated from an overloaded binary op. These things exist in bm_chaos and bm_spectralnorm. They thus block inlining of really simple small functions.

For now, I shall just add specializations for them on my branch for the sake of benchmarking, but in the long term, we need some way to collect this profiling information and reflect that to tier 2. Something like what @markshannon suggested about some sort of dispatch table for infrequent and the long tail of specializations maybe?

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