Skip to content

UniStr constructor is not type stable #64

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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