Skip to content

UniStr constructor is not type stable #64

@bkamins

Description

@bkamins

This probably will be a problem when dynamically constructing UniStr:

julia> @code_warntype Strs.UniStr("1")
Variables:
  str::String

Body:
  begin
      # meta: location D:\DEV\Julia\Strs.jl\src\encode.jl convert 82
      Core.SSAValue(1) = $(Expr(:invoke, MethodInstance for _str(::String), :(Main.Strs._str), :(str)))::Any
      # meta: pop location
      return Core.SSAValue(1)
  end::Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions