Skip to content

getglobal with binding partitions is much slower than a dynamic dispatch #58334

Open
@gbaraldi

Description

@gbaraldi
function foo(x)
   @invokelatest sin(x)
end

1.11

@btime foo(1.5)
  15.015 ns (1 allocation: 16 bytes)

1.12

@btime foo(1.5)
  46.043 ns (1 allocation: 16 bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions