Skip to content

Simple type-unstable code: 150x regression wrt 1.8 #48612

Closed
@aplavin

Description

@aplavin

See MWE below. Results are the same for beta3 and beta4.

# 1.8
julia> @btime NamedTuple{k[]}(v[])  setup=(k=Ref((:a,)); v=Ref((1,)))
  337.324 ns (6 allocations: 192 bytes)
(a = 1,)
# 1.9
julia> @btime NamedTuple{k[]}(v[])  setup=(k=Ref((:a,)); v=Ref((1,)))
  52.048 μs (44 allocations: 2.16 KiB)
(a = 1,)

Ref slack thread just in case: https://julialang.slack.com/archives/C67910KEH/p1675970292526539.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regression 1.9Regression in the 1.9 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions